diff options
author | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2015-08-11 18:14:02 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-09-01 20:15:23 +0000 |
commit | 678d3de4b53f22ead68a0874df2892137ad3b7f7 (patch) | |
tree | 3668f51e1f0c9490433e1084b96693958731931d /tests/manual/pointer/main.qml | |
parent | 149911b0f45fbe1d1a4766a0bb0c9b7c3b54366d (diff) |
Introduce PinchHandler
Similar to PinchArea but with improvements:
- Allows rotating and scaling about an arbitrary point rather than the center
- It's possible to require more than 2 fingers. E.g. maybe you use
3 fingers to manage a window, 2 fingers to manipulate content inside.
This could be achieved with two independent PinchHandlers.
Change-Id: Ifd40cfee115d7bc298378b26a58318bea40a8230
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'tests/manual/pointer/main.qml')
-rw-r--r-- | tests/manual/pointer/main.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual/pointer/main.qml b/tests/manual/pointer/main.qml index efe603c57f..45a339b302 100644 --- a/tests/manual/pointer/main.qml +++ b/tests/manual/pointer/main.qml @@ -52,6 +52,7 @@ Window { Component.onCompleted: { addExample("joystick", "DragHandler: move one item inside another with any pointing device", Qt.resolvedUrl("joystick.qml")) addExample("mixer", "mixing console", Qt.resolvedUrl("mixer.qml")) + addExample("pinch", "PinchHandler: scale, rotate and drag", Qt.resolvedUrl("pinchHandler.qml")) } } } |