palette from the config overrides even the platform plugin still (as it is
with the style for example)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
QColor(strlist[i]));
}
- // ### Fix properly for 4.6
- if (groupCount == QPalette::NColorGroups)
+ if (groupCount == QPalette::NColorGroups) {
QApplicationPrivate::setSystemPalette(pal);
+ } else {
+ pal = qt_guiPlatformPlugin()->palette();
+ if (pal != QPalette()) {
+ QApplicationPrivate::setSystemPalette(pal);
+ }
+ }
QString fontDescription = settings.string(QLatin1String("Qt/font"));
if (!fontDescription.isEmpty()) {