diff options
Diffstat (limited to 'tests/manual/touch/flicktext.qml')
-rw-r--r-- | tests/manual/touch/flicktext.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/manual/touch/flicktext.qml b/tests/manual/touch/flicktext.qml index 9e84261687..e69d6207a9 100644 --- a/tests/manual/touch/flicktext.qml +++ b/tests/manual/touch/flicktext.qml @@ -380,6 +380,36 @@ Rectangle { text: "content X " + flick.contentX.toFixed(2) + " Y " + flick.contentY.toFixed(2) } } + + Column { + Row { + spacing: 2 + Examples.Button { + id: decrButton + text: "-" + onClicked: flick.flickDeceleration -= 100 + Timer { + running: decrButton.pressed + interval: 100; repeat: true + onTriggered: flick.flickDeceleration -= 100 + } + } + Text { + horizontalAlignment: Text.AlignHCenter + text: "decel:\n" + flick.flickDeceleration.toFixed(4) + } + Examples.Button { + id: incrButton + text: "+" + onClicked: flick.flickDeceleration += 100 + } + Timer { + running: incrButton.pressed + interval: 100; repeat: true + onTriggered: flick.flickDeceleration += 100 + } + } + } } Component.onCompleted: { |