diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-09-20 14:06:40 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-09-20 22:25:59 +0200 |
commit | 4973155512969300c848a3aae8dbb21f07e50c45 (patch) | |
tree | ca0ffbdf07cad2d56e34065943b18bdd4a017f17 /src/gui/kernel/qplatformtheme.h | |
parent | feed452a9987a4629b03d3bc4a629ba7978ab7ba (diff) |
Replace QPlatformTheme::Appearance by Qt:Appearance
With the introduction of Qt:Appearance, its predecessor in
QPlatformTheme has become redundant.
This patch replaces all occurrences of QPlatformTheme::Appearance with
the new enum class.
Task-number: QTBUG-106381
Change-Id: I5406f1b7c19f68571f074617c681318c96a6517e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformtheme.h')
-rw-r--r-- | src/gui/kernel/qplatformtheme.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/kernel/qplatformtheme.h b/src/gui/kernel/qplatformtheme.h index d64f7633ba..94d9a82fd3 100644 --- a/src/gui/kernel/qplatformtheme.h +++ b/src/gui/kernel/qplatformtheme.h @@ -98,12 +98,6 @@ public: MessageDialog }; - enum class Appearance { - Unknown = 0x0000, - Light = 0x0001, - Dark = 0x0002 - }; - enum Palette { SystemPalette, ToolTipPalette, @@ -286,7 +280,7 @@ public: virtual QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const; #endif - virtual Appearance appearance() const; + virtual Qt::Appearance appearance() const; virtual const QPalette *palette(Palette type = SystemPalette) const; |