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.

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>
(cherry picked from commit 64f86ca03eeda4ea52ec15546edc5a0bc183bc8a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Maximilian Goldstein 2022-06-13 12:09:14 +02:00 committed by Qt Cherry-pick Bot
parent cb2e536365
commit 5039fec32a

View File

@ -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);
}