diff options
Diffstat (limited to 'tests/auto/quick/qquickflickable/data/pressDelay.qml')
-rw-r--r-- | tests/auto/quick/qquickflickable/data/pressDelay.qml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickflickable/data/pressDelay.qml b/tests/auto/quick/qquickflickable/data/pressDelay.qml new file mode 100644 index 0000000000..18a5840504 --- /dev/null +++ b/tests/auto/quick/qquickflickable/data/pressDelay.qml @@ -0,0 +1,32 @@ +import QtQuick 2.0 + +Flickable { + flickableDirection: Flickable.VerticalFlick + width: 480 + height: 320 + contentWidth: 480 + contentHeight: 400 + pressDelay: 100 + + MouseArea { + id: ma + objectName: "mouseArea" + y: 100 + anchors.horizontalCenter: parent.horizontalCenter + width: 240 + height: 100 + + Rectangle { + anchors.fill: parent + color: parent.pressed ? 'blue' : 'green' + + Text { + anchors.fill: parent + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + text: 'Hello' + } + } + } +} + |