Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / qdeclarativeflickable / flickable-nested.qml
1 import QtQuick 1.0
2
3 Item {
4     width: 640
5     height: 400
6
7     Flickable {
8         objectName: "flick 1"
9         anchors.fill: parent
10         contentWidth: width + 100
11         contentHeight: height + 100
12
13         Rectangle {
14             width: 300
15             height: 300
16             color: "blue"
17     
18             Flickable {
19                 objectName: "flick 2"
20                 width: 300
21                 height: 300
22                 clip: true
23                 contentWidth: 400
24                 contentHeight: 400
25
26                 Rectangle {
27                     width: 100
28                     height: 100
29                     anchors.centerIn: parent
30                     color: "yellow"
31
32                     Flickable {
33                         objectName: "flick 3"
34                         anchors.fill: parent
35                         clip: true
36                         contentWidth: 150
37                         contentHeight: 150
38                         Rectangle {
39                             x: 80
40                             y: 80
41                             width: 50
42                             height: 50
43                             color: "green"
44                         }
45                     }
46                 }
47             }
48         }
49     }
50 }