From 64f86ca03eeda4ea52ec15546edc5a0bc183bc8a Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Mon, 13 Jun 2022 12:09:14 +0200 Subject: qwasmtheme: Enable hover effects by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Lorn Potter Reviewed-by: Qt CI Bot --- src/plugins/platforms/wasm/qwasmtheme.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.3