aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/pointerhandlers/pinchHandler.qml
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-08-31 09:59:05 +0200
committerKai Köhne <kai.koehne@qt.io>2022-08-31 16:37:35 +0200
commitb7f448f8647a9a118cee2d79d446194b20d4b335 (patch)
tree9a11a2839ba6af716ce0fb612f365f6fcfbfcf07 /examples/quick/pointerhandlers/pinchHandler.qml
parentec582ef0b9e31c5e8fb9d36a17f1e39f593d7455 (diff)
Examples: Do not use import version numbers anymore
Pick-to: 6.4 Change-Id: I1f4d4920bb9d132a846ac2dbcfdb8b660759d540 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick/pointerhandlers/pinchHandler.qml')
-rw-r--r--examples/quick/pointerhandlers/pinchHandler.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/pointerhandlers/pinchHandler.qml b/examples/quick/pointerhandlers/pinchHandler.qml
index 41643fbaea..f8febc47ee 100644
--- a/examples/quick/pointerhandlers/pinchHandler.qml
+++ b/examples/quick/pointerhandlers/pinchHandler.qml
@@ -133,7 +133,7 @@ Rectangle {
onGrabChanged: function (transition, point) {
if (transition === 0x10) { // GrabExclusive
console.log(point.id, "grabbed @", point.position)
- Qt.createQmlObject("import QtQuick 2.0; Rectangle { opacity: 0.5; border.color: 'red'; radius: 8; width: radius * 2; height: radius * 2; " +
+ Qt.createQmlObject("import QtQuick; Rectangle { opacity: 0.5; border.color: 'red'; radius: 8; width: radius * 2; height: radius * 2; " +
"x: " + (point.position.x - 8) + "; y: " + (point.position.y - 8) + "}",
rect3, "touchpoint" + point.id);
}