aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/modelviews/package/view.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/modelviews/package/view.qml')
-rw-r--r--examples/quick/modelviews/package/view.qml22
1 files changed, 17 insertions, 5 deletions
diff --git a/examples/quick/modelviews/package/view.qml b/examples/quick/modelviews/package/view.qml
index 7ba6664ae2..b12dec3de2 100644
--- a/examples/quick/modelviews/package/view.qml
+++ b/examples/quick/modelviews/package/view.qml
@@ -41,9 +41,16 @@
import QtQuick 2.0
Rectangle {
+ id: root
color: "white"
- width: 400
- height: 200
+ width: 320
+ height: 480
+ property int upTo: 0
+ SequentialAnimation on upTo {
+ loops: -1
+ NumberAnimation { to: 8; duration: 3500 }
+ NumberAnimation { to: 0; duration: 3500 }
+ }
ListModel {
id: myModel
@@ -64,17 +71,22 @@ Rectangle {
}
ListView {
- width: 200; height:200
+ id: lv
+ height: parent.height/2
+ width: parent.width
+
model: visualModel.parts.list
}
GridView {
- x: 200; width: 200; height:200
+ y: parent.height/2
+ height: parent.height/2
+ width: parent.width
+ cellWidth: width / 2
cellHeight: 50
model: visualModel.parts.grid
}
//![0]
Text {
anchors.bottom: parent.bottom
- text: "Tap a delegate to move between views"
}
}