diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2022-06-13 12:09:14 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2022-06-15 21:08:30 +0000 |
commit | 64f86ca03eeda4ea52ec15546edc5a0bc183bc8a (patch) | |
tree | b927982a66d224687fd9898d1e98015d9428ec51 | |
parent | 9d2cc4dd766ca6538e17040b6ac845ed880ab0fe (diff) |
qwasmtheme: Enable hover effects by default
Previously hover effects had to be enabled manually due to not being
enabled in the platform style. This change enables them by default.
Pick-to: 6.4
Fixes: QTBUG-88799
Change-Id: I014e1f5dfcd9b15656f11e12ab75a77d42f4815c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r-- | src/plugins/platforms/wasm/qwasmtheme.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmtheme.cpp b/src/plugins/platforms/wasm/qwasmtheme.cpp index 5fa9b5125d..51399159c4 100644 --- a/src/plugins/platforms/wasm/qwasmtheme.cpp +++ b/src/plugins/platforms/wasm/qwasmtheme.cpp @@ -26,6 +26,8 @@ QVariant QWasmTheme::themeHint(ThemeHint hint) const { if (hint == QPlatformTheme::StyleNames) return QVariant(QStringList() << "Fusion"_L1); + if (hint == QPlatformTheme::UiEffects) + return QVariant(int(HoverEffect)); return QPlatformTheme::themeHint(hint); } |