diff options
author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2022-11-10 22:42:29 +0200 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2022-11-10 22:42:29 +0200 |
commit | f5701f0def37fcc0c2b38ae9552eb3a896a34687 (patch) | |
tree | aa9a7ebb39bedb6794f199d94525f5ddfb696308 /tests/manual/touch/flicktext.qml | |
parent | da0aac1057552048f59075beb31861a6cc076684 (diff) | |
parent | e24effdceb3a504182ae271200408750991aa94a (diff) |
Merge remote-tracking branch 'origin/tqtc/lts-5.15.8' into tqtc/lts-5.15-opensourcev5.15.8-lts-lgpl
Change-Id: I2e0f34eea87c1393dff82f153650eccf5048248f
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: { |