diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-06-21 13:19:45 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-06-21 14:22:00 +0200 |
commit | ed00e3093be53923ffaacdec05f3e730d62a8064 (patch) | |
tree | c57e38ef3f21c68f23838fb4249db833ca8ec346 | |
parent | cbb0295f7b793af44e7560ace23734bb3f31b861 (diff) |
Remove duplicate call to QApplicationPrivate::setPalette_helper
initSystemPalette() already takes care of this.
Change-Id: I6521763a74ec3ec629d9fcf05aa2a7cd71a7f26d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r-- | src/widgets/kernel/qapplication.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index d25891a83b..b640808b2f 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -1156,7 +1156,6 @@ void QApplication::setStyle(QStyle *style) clearSystemPalette(); initSystemPalette(); QApplicationPrivate::initializeWidgetFontHash(); - QApplicationPrivate::setPalette_helper(*QApplicationPrivate::sys_pal, /*className=*/0, /*clearWidgetPaletteHash=*/false); } else if (!QApplicationPrivate::sys_pal) { // Initialize the sys_pal if it hasn't happened yet... QApplicationPrivate::setSystemPalette(QApplicationPrivate::app_style->standardPalette()); |