From 4973155512969300c848a3aae8dbb21f07e50c45 Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Tue, 20 Sep 2022 14:06:40 +0200 Subject: Replace QPlatformTheme::Appearance by Qt:Appearance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tor Arne Vestbø --- src/gui/kernel/qplatformtheme.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/gui/kernel/qplatformtheme.h') 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; -- cgit v1.2.3