From 43fa4b26870daffd4d44a42941bad141f6594db4 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Thu, 10 Sep 2020 14:49:22 +0200 Subject: QStyle: return 'Fusion' instead of 'fusion' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change should have no impact on Widgets, since style names there are case-insensitive. But for QtQuick controls the style names are case sensitive. So in order to use the style hint from the platform theme for controls, we need to return the name with an uppercase "F". Change-Id: I360f43f174938202b0ef2cdfcde6daf39c9f39bb Reviewed-by: Tor Arne Vestbø Reviewed-by: Mitch Curtis --- src/plugins/platforms/wasm/qwasmtheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/wasm') diff --git a/src/plugins/platforms/wasm/qwasmtheme.cpp b/src/plugins/platforms/wasm/qwasmtheme.cpp index 978d60d686..4b99f90591 100644 --- a/src/plugins/platforms/wasm/qwasmtheme.cpp +++ b/src/plugins/platforms/wasm/qwasmtheme.cpp @@ -50,7 +50,7 @@ QWasmTheme::~QWasmTheme() QVariant QWasmTheme::themeHint(ThemeHint hint) const { if (hint == QPlatformTheme::StyleNames) - return QVariant(QStringList() << QLatin1String("fusion")); + return QVariant(QStringList() << QLatin1String("Fusion")); return QPlatformTheme::themeHint(hint); } -- cgit v1.2.3