aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/pointerhandlers/qquicktaphandler
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-08-28 16:23:20 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-09-12 09:04:58 +0000
commita1b42f95a711f8d8fb87d79ad04eee0a433749ed (patch)
tree5f93488fa9b471fbba9244b8934204438b0e460e /tests/auto/quick/pointerhandlers/qquicktaphandler
parent47b3b1b10246cad6709c0cd99f02208dbaf6b7c0 (diff)
rename TapHandler.isPressed property to pressed
This is for the sake of convention. Unfortunately (and the reason it wasn't done this way at the outset), it may prevent us from ever having a signal called "pressed" in this handler or its base class. Change-Id: Iafa117410e0e33562290b87df59bc8c0085c217d Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/quick/pointerhandlers/qquicktaphandler')
-rw-r--r--tests/auto/quick/pointerhandlers/qquicktaphandler/data/Button.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquicktaphandler/data/Button.qml b/tests/auto/quick/pointerhandlers/qquicktaphandler/data/Button.qml
index 6203a6769d..63c30b4d34 100644
--- a/tests/auto/quick/pointerhandlers/qquicktaphandler/data/Button.qml
+++ b/tests/auto/quick/pointerhandlers/qquicktaphandler/data/Button.qml
@@ -44,7 +44,7 @@ import Qt.labs.handlers 1.0
Rectangle {
id: root
property alias label: label.text
- property alias pressed: tap.isPressed
+ property alias pressed: tap.pressed
property bool checked: false
property alias gesturePolicy: tap.gesturePolicy
signal tapped
@@ -53,7 +53,7 @@ Rectangle {
border.color: "#9f9d9a"; border.width: 1; radius: height / 4; antialiasing: true
gradient: Gradient {
- GradientStop { position: 0.0; color: tap.isPressed ? "#b8b5b2" : "#efebe7" }
+ GradientStop { position: 0.0; color: tap.pressed ? "#b8b5b2" : "#efebe7" }
GradientStop { position: 1.0; color: "#b8b5b2" }
}
@@ -85,7 +85,7 @@ Rectangle {
Rectangle {
objectName: "expandingCircle"
radius: tap.timeHeld * 100
- visible: radius > 0 && tap.isPressed
+ visible: radius > 0 && tap.pressed
border.width: 3
border.color: "blue"
color: "transparent"