[Qgis-developer] Print composer: font-size regression

Andreas Neumann a.neumann at carto.net
Thu Feb 2 07:02:10 EST 2012


 Thank you Jürgen and Marco for investigating and fixing this issue!

 Andreas

 On Thu, 02 Feb 2012 09:45:23 +0100, Marco Hugentobler wrote:
> Hi
>
> This is caused by the call to setStyleSheet in the composer:
>
> (qgscomposer.cpp: 323) setStyleSheet( QString( "font-size: %1pt; "
> ).arg( fontSize ) );
>
> It seems this is propagated through all children down to the
> QFontDialogs. With a quick google, I only found this:
>
> 
> http://lists.qt.nokia.com/pipermail/qt-interest/2011-January/030939.html
>
> So easiest solution is probably to have the QFontDialogs with 0
> parents to avoid propagation.
> Any better solutions?
>
> Regards,
> Marco
>
> On 01.02.2012 14:08, Andreas Neumann wrote:
>> Hi,
>>
>> With the recent improvements to allow font-size adjustments in 
>> menus/dialogues there is a small new regression:
>>
>> In Print composer the font-size of a label element is now restricted 
>> to the font-size one selects in the global settings for menu/dialogue 
>> font-sizes (Settings --> Options --> Menu Size).
>>
>> I tried to open a ticket, but currently I can't reach hub.qgis.org 
>> from my workplace.
>>
>> Thank you for looking into this issue!
>>
>> Andreas
>>

-- 
 --
 Andreas Neumann
 Böschacherstrasse 10A
 8624 Grüt (Gossau ZH)
 Switzerland


More information about the Qgis-developer mailing list