summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-01-22 20:00:27 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2018-01-31 08:26:51 +0000
commit6eaa95662c2d4ba287ac5d1de5ec49bd3a9f59e6 (patch)
tree7b1642415f42ce36961047024a1af9836984c04a /tests/auto
parent6a7c662bd5f7fe4a223aba2e15bb24a9ffc92df6 (diff)
downloadqtdeclarative-6eaa95662c2d4ba287ac5d1de5ec49bd3a9f59e6.tar.gz
Change default TapHandler.gesturePolicy to DragThreshold
This is based on the idea that TapHandler may be more often used to modify existing behavior rather than building Button controls from scratch. DragThreshold is reasonable newbie-friendly default behavior for both use cases. The drag-off-drag-back-release-and-click behavior is more advanced, and the designers of the best-behaving Button controls can be expected to discover the need to change gesturePolicy to get it. Change-Id: If220acf080e04f664d020d5e832f8d16a16b857a Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/quick/pointerhandlers/qquicktaphandler/data/buttonOverrideHandler.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquicktaphandler/data/buttonOverrideHandler.qml b/tests/auto/quick/pointerhandlers/qquicktaphandler/data/buttonOverrideHandler.qml
index 14a8d67300..219d4a70a8 100644
--- a/tests/auto/quick/pointerhandlers/qquicktaphandler/data/buttonOverrideHandler.qml
+++ b/tests/auto/quick/pointerhandlers/qquicktaphandler/data/buttonOverrideHandler.qml
@@ -38,6 +38,7 @@ Item {
label: "Overridden"
x: 10; y: 10; width: parent.width - 20; height: 40
TapHandler {
+ gesturePolicy: TapHandler.ReleaseWithinBounds
objectName: "override"
onTapped: button.tapped()
}