diff options
| author | J-P Nurmi <jpnurmi@qt.io> | 2016-06-29 15:58:23 +0200 |
|---|---|---|
| committer | J-P Nurmi <jpnurmi@qt.io> | 2016-07-20 18:33:59 +0000 |
| commit | 4e6dd1c50a08877189891806ed0dc977aafceade (patch) | |
| tree | 69753811900e27ec3910cfce03a4e541cbee3038 /src/platformsupport/themes/genericunix/qgenericunixthemes.cpp | |
| parent | 494ced13292fa9d7b572f5310090f6b8fab36e26 (diff) | |
| download | qtbase-4e6dd1c50a08877189891806ed0dc977aafceade.tar.gz | |
Add QStyleHints::useHoverEffects
The delivery of hover events creates unnecessary overhead on touch
platforms. This allows Qt Quick Controls 2 to determine whether the
underlying platform wants hover effects. The hover effects are enabled
by default for the classic desktop platforms: Linux, Windows & macOS.
Change-Id: Ia4e7b5c0fcb7af8f1c47e06fb28086cffdf35976
Task-number: QTBUG-50003
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/platformsupport/themes/genericunix/qgenericunixthemes.cpp')
| -rw-r--r-- | src/platformsupport/themes/genericunix/qgenericunixthemes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp b/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp index 5e5c931c2c..32ca381b93 100644 --- a/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp +++ b/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp @@ -666,6 +666,8 @@ QVariant QGnomeTheme::themeHint(QPlatformTheme::ThemeHint hint) const return QVariant(int(GnomeKeyboardScheme)); case QPlatformTheme::PasswordMaskCharacter: return QVariant(QChar(0x2022)); + case QPlatformTheme::UiEffects: + return QVariant(int(HoverEffect)); default: break; } |
