summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiostheme.mm
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2022-09-20 14:06:40 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2022-09-20 22:25:59 +0200
commit4973155512969300c848a3aae8dbb21f07e50c45 (patch)
treeca0ffbdf07cad2d56e34065943b18bdd4a017f17 /src/plugins/platforms/ios/qiostheme.mm
parentfeed452a9987a4629b03d3bc4a629ba7978ab7ba (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/ios/qiostheme.mm')
-rw-r--r--src/plugins/platforms/ios/qiostheme.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/platforms/ios/qiostheme.mm b/src/plugins/platforms/ios/qiostheme.mm
index 02143bd7a2..51d88710bd 100644
--- a/src/plugins/platforms/ios/qiostheme.mm
+++ b/src/plugins/platforms/ios/qiostheme.mm
@@ -132,15 +132,15 @@ QVariant QIOSTheme::themeHint(ThemeHint hint) const
}
}
-QPlatformTheme::Appearance QIOSTheme::appearance() const
+Qt::Appearance QIOSTheme::appearance() const
{
if (UIWindow *window = qt_apple_sharedApplication().windows.lastObject) {
return window.rootViewController.traitCollection.userInterfaceStyle
== UIUserInterfaceStyleDark
- ? QPlatformTheme::Appearance::Dark
- : QPlatformTheme::Appearance::Light;
+ ? Qt::Appearance::Dark
+ : Qt::Appearance::Light;
}
- return QPlatformTheme::Appearance::Unknown;
+ return Qt::Appearance::Unknown;
}
const QFont *QIOSTheme::font(Font type) const