summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeflickable
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-02-22 00:03:14 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-02-22 00:03:14 (GMT)
commit0c24787a2f35a7b0585c9dfb3bf0a8cb34ce867f (patch)
treebf197586433043dc93b83a425b1407d543a0cdfc /tests/auto/declarative/qdeclarativeflickable
parent1bcddaaf318fc37c71c5191913f3487c49444ec6 (diff)
downloadQt-0c24787a2f35a7b0585c9dfb3bf0a8cb34ce867f.zip
Qt-0c24787a2f35a7b0585c9dfb3bf0a8cb34ce867f.tar.gz
Qt-0c24787a2f35a7b0585c9dfb3bf0a8cb34ce867f.tar.bz2
Add missing test file.
Missed in 1bcddaaf318fc37c71c5191913f3487c49444ec6 Change-Id: I4f71e5fb2b0e67a6e64ee64ae03b9d9cfc7a244f Task-number: QTBUG-17361
Diffstat (limited to 'tests/auto/declarative/qdeclarativeflickable')
-rw-r--r--tests/auto/declarative/qdeclarativeflickable/data/nestedPressDelay.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeflickable/data/nestedPressDelay.qml b/tests/auto/declarative/qdeclarativeflickable/data/nestedPressDelay.qml
new file mode 100644
index 0000000..d0ee545
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeflickable/data/nestedPressDelay.qml
@@ -0,0 +1,33 @@
+import QtQuick 1.0
+
+Flickable {
+ property bool pressed: ma.pressed
+ width: 240
+ height: 320
+ contentWidth: 480
+ contentHeight: 320
+ flickableDirection: Flickable.HorizontalFlick
+ pressDelay: 50
+ Flickable {
+ objectName: "innerFlickable"
+ flickableDirection: Flickable.VerticalFlick
+ width: 480
+ height: 320
+ contentWidth: 480
+ contentHeight: 400
+ pressDelay: 10000
+ Rectangle {
+ y: 100
+ anchors.horizontalCenter: parent.horizontalCenter
+ width: 240
+ height: 100
+ color: ma.pressed ? 'blue' : 'green'
+ MouseArea {
+ id: ma
+ objectName: "mouseArea"
+ anchors.fill: parent
+ }
+ }
+ }
+}
+