Remove duplicate call to QApplicationPrivate::initializeWidgetPaletteHash()
initSystemPalette() already calls this when there's a platform theme, which is the only case where initializeWidgetPaletteHash will have an effect. Change-Id: I814ea2bb17ef40aee769f2c36f8ef4296cfca020 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
parent
cea661d395
commit
cbb0295f7b
|
|
@ -1155,7 +1155,6 @@ void QApplication::setStyle(QStyle *style)
|
|||
} else if (QApplicationPrivate::sys_pal) {
|
||||
clearSystemPalette();
|
||||
initSystemPalette();
|
||||
QApplicationPrivate::initializeWidgetPaletteHash();
|
||||
QApplicationPrivate::initializeWidgetFontHash();
|
||||
QApplicationPrivate::setPalette_helper(*QApplicationPrivate::sys_pal, /*className=*/0, /*clearWidgetPaletteHash=*/false);
|
||||
} else if (!QApplicationPrivate::sys_pal) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue