Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeflickable / data / nestedPressDelay.qml
1 import QtQuick 1.0
2
3 Flickable {
4     property bool pressed: ma.pressed
5     width: 240
6     height: 320
7     contentWidth: 480
8     contentHeight: 320
9     flickableDirection: Flickable.HorizontalFlick
10     pressDelay: 50
11     Flickable {
12         objectName: "innerFlickable"
13         flickableDirection: Flickable.VerticalFlick
14         width: 480
15         height: 320
16         contentWidth: 480
17         contentHeight: 400
18         pressDelay: 10000
19         Rectangle {
20             y: 100
21             anchors.horizontalCenter: parent.horizontalCenter
22             width: 240
23             height: 100
24             color: ma.pressed ? 'blue' : 'green'
25             MouseArea {
26                 id: ma
27                 objectName: "mouseArea"
28                 anchors.fill: parent
29             }
30         }
31     }
32 }
33