summaryrefslogtreecommitdiffstats
path: root/header.LGPL3
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-07-08 14:59:43 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2019-07-08 20:29:17 +0200
commit8f75910deaf5a41506dc5cb0fe412a8f4674be0d (patch)
tree361469a377b0762e4668960ce4b3896df86400c9 /header.LGPL3
parent6c136973fd9b82420c818668086abe93f534993d (diff)
Add mouseDoubleClickDistance and touchDoubleTapDistance to QStyleHints
Amends ca280bfe3bc551f814d59d25079e098798fbdad7 and 705e3f68df83dca165e3cddb914d3816155323f8 which added these enums only to QPlatformTheme::ThemeHint but not to QPlatformIntegration::StyleHint. Those patches did not add accessors to QStyleHints, probably because the accessors in QStyleHints use the themeableHint() function which takes both enums; so to have an accessor implemented this way, we need it in both enums. But it's getting too silly, since the only platform plugin that modifies MouseDoubleClickDistance is Android, implemented by QAndroidPlatformTheme overriding QPlatformTheme::themeHint(), and thus illustrating that adding the enum to QPlatformIntegration::StyleHint is not the only way to allow a platform plugin to customize the hint. So it seems we need a new way of writing these accessors without needing to duplicate the enum value in QPlatformIntegration::StyleHint. The new version of themeableHint(QPlatformTheme::ThemeHint) falls back on the static QPlatformTheme::defaultThemeHint() accessor. Users should at least be able to see what the default value is; and having these getters will also provide link targets for QtQuick's TapHandler docs. Change-Id: I0f8560062bcd0ca5e6d580071d9fbcf3f07f625f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'header.LGPL3')
0 files changed, 0 insertions, 0 deletions