diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-07-02 11:53:49 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2016-07-04 21:19:49 +0000 |
commit | 603ff80d3e7622b14d666df73a03e29aec874dda (patch) | |
tree | d7cac85cebbbb14f68dda12cda2a881679080160 /tests/auto/quick/qquickpincharea/data | |
parent | 827af028904c8f0c370ea590d565e9a31e168088 (diff) |
Fix tst_qquickpincharea::pan with highdpi and document it
The test was expanded slightly and documented, so that it's easier to
understand the strangeness of the center.
On my display the dragThreshold is returned as 16 while the test assued
it's always <= 10.
Explain the math and the coordinate changes due to everything being in
item coordinates.
Change-Id: I4bf72271895ecd9e248154c08bf36eab376c6d79
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickpincharea/data')
-rw-r--r-- | tests/auto/quick/qquickpincharea/data/pinchproperties.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickpincharea/data/pinchproperties.qml b/tests/auto/quick/qquickpincharea/data/pinchproperties.qml index 37d706fc8e..c5daf6cbfe 100644 --- a/tests/auto/quick/qquickpincharea/data/pinchproperties.qml +++ b/tests/auto/quick/qquickpincharea/data/pinchproperties.qml @@ -2,7 +2,7 @@ import QtQuick 2.0 Rectangle { id: whiteRect property variant center - property real scale + property real scale: -1.0 property int pointCount: 0 property bool pinchActive: false width: 240; height: 320 |