aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/modelviews/package/view.qml
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-03-08 10:50:11 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-22 02:50:37 +0100
commit793a01d28fb5f0b99b638332214b2267c2ca29db (patch)
tree853b1bbcdae1c19400dbb400c324caa0f210e4c0 /examples/quick/modelviews/package/view.qml
parentee4202a5d35ad82bc957a0978dc50af00591a274 (diff)
Update model view examples to common launcher format.
Change-Id: I8dc30a9ade3cbbfa91d51d85617975ad7d46ee15 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
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"
}
}