diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-12-12 11:38:35 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-12-12 18:45:49 +0100 |
commit | c1337eef8b9cf3b14038945727de94578eba63a9 (patch) | |
tree | 60a2f5544de57669e5ecc96b219fddaa71c75e30 /tests/auto/quick | |
parent | fd59be455a998d7ab45831e4c7c269f3cf1384f1 (diff) |
Stabilize tst_QQuickPinchHandler::scaleThreeFingers with dragThreshold
Local behavior has been different than on CI or with Xephyr: high-dpi
screens have a larger drag threshold even when
QT_ENABLE_HIGHDPI_SCALING=0 and QT_SCALE_FACTOR=1. This should make the
test DPI-independent.
Change-Id: I4c0ee5b47a0635fc6ca9cc881993bf0a82b0624b
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r-- | tests/auto/quick/pointerhandlers/qquickpinchhandler/data/threeFingers.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/threeFingers.qml b/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/threeFingers.qml index 5247979891..dbebf92933 100644 --- a/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/threeFingers.qml +++ b/tests/auto/quick/pointerhandlers/qquickpinchhandler/data/threeFingers.qml @@ -1,7 +1,7 @@ // Copyright (C) 2018 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -import QtQuick 2.12 +import QtQuick Rectangle { id: root @@ -19,6 +19,7 @@ Rectangle { PinchHandler { id: pinchHandler objectName: "pinchHandler" + dragThreshold: 10 minimumScale: 0.5 maximumScale: 2.0 minimumRotation: 0.0 |