forked from qt-creator/qt-creator
Utils: Fix build before Qt6.6
Amends 5ced0731f0
.
Change-Id: I9c6dd2dd137b67ff3a77163a7d6a517203cabf1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -453,8 +453,13 @@ QPalette Theme::palette() const
|
||||
{PaletteShadowDisabled, QPalette::Shadow, QPalette::Disabled, false},
|
||||
{PalettePlaceholderText, QPalette::PlaceholderText, QPalette::All, false},
|
||||
{PalettePlaceholderTextDisabled, QPalette::PlaceholderText, QPalette::Disabled, false},
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 6, 0)
|
||||
{PaletteAccent, QPalette::NoRole, QPalette::All, false},
|
||||
{PaletteAccentDisabled, QPalette::NoRole, QPalette::Disabled, false},
|
||||
#else
|
||||
{PaletteAccent, QPalette::Accent, QPalette::All, false},
|
||||
{PaletteAccentDisabled, QPalette::Accent, QPalette::Disabled, false},
|
||||
#endif
|
||||
};
|
||||
|
||||
for (auto entry: mapping) {
|
||||
|
Reference in New Issue
Block a user