[Development] QPalette::Mid neglected?

Martin Koller kollix at aon.at
Thu Jan 16 22:23:21 CET 2014


On Wednesday 15 January 2014 18:16:12 Rafael Roquetto wrote:
> Hello everyone,
> 
> I noticed that one program that I run displays a lot of black squares when it
> shouldn't - I traced the problem down to the fact that, at least on this env
> - KDE4 + Qt5 dev branch HEAD - QPalette::mid() returns QBrush(QColor(ARGB 1,
>   0, 0, 0) , SolidPattern ), or black.
> 
> It seems that nowhere in the Qt source code the value of QPalette::Mid is being
> set, apart from QWindowsTheme. In my case, the relevant class is QKdeTheme,
> which does set a value for QPalette::Mid but only for the QPalette::Disabled
> ColorGroup. Therefore, for the Active color group the value is defaulting to
> black.
> 
> Is this intended behavior or should this be fixed? For more context, see
> QKdeThemePrivate::readKdeSystemPalette() inside qgenericunixthemes.cpp.

What a coincidence - I just reported this as a bug to digia (we have commercial support)
and I already provided a fix for this. They said they will push this to gerrit.

If you'd like to have a look at my solution, see attached patch.

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colors.patch
Type: text/x-patch
Size: 1928 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140116/ba78dd45/attachment.bin>


More information about the Development mailing list