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/plugins/platforms/windows/qwindowstheme.cpp | |
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/plugins/platforms/windows/qwindowstheme.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowstheme.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowstheme.cpp b/src/plugins/platforms/windows/qwindowstheme.cpp index 87861956a0..3704fce15e 100644 --- a/src/plugins/platforms/windows/qwindowstheme.cpp +++ b/src/plugins/platforms/windows/qwindowstheme.cpp @@ -564,9 +564,9 @@ QVariant QWindowsTheme::themeHint(ThemeHint hint) const return QPlatformTheme::themeHint(hint); } -QPlatformTheme::Appearance QWindowsTheme::appearance() const +Qt::Appearance QWindowsTheme::appearance() const { - return QWindowsContext::isDarkMode() ? Appearance::Dark : Appearance::Light; + return QWindowsContext::isDarkMode() ? Qt::Appearance::Dark : Qt::Appearance::Light; } void QWindowsTheme::clearPalettes() |