summaryrefslogtreecommitdiffstats
path: root/examples/declarative/velocity/velocity.qml
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-28 05:50:28 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-28 05:50:28 (GMT)
commit2a3ebb69d4a91ae233dd015debf9f323a86b79d3 (patch)
tree618e5288f3bf32e2fac6bd3edc677d40da615a1f /examples/declarative/velocity/velocity.qml
parent1cfb6992aaa381e07a2751b100eb6c353f874c8e (diff)
parent44be8cc3bb1aebd47f75dcf9cae54884322e1955 (diff)
downloadQt-2a3ebb69d4a91ae233dd015debf9f323a86b79d3.zip
Qt-2a3ebb69d4a91ae233dd015debf9f323a86b79d3.tar.gz
Qt-2a3ebb69d4a91ae233dd015debf9f323a86b79d3.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative/velocity/velocity.qml')
-rw-r--r--examples/declarative/velocity/velocity.qml77
1 files changed, 35 insertions, 42 deletions
diff --git a/examples/declarative/velocity/velocity.qml b/examples/declarative/velocity/velocity.qml
index b132965..50d69d8 100644
--- a/examples/declarative/velocity/velocity.qml
+++ b/examples/declarative/velocity/velocity.qml
@@ -2,8 +2,8 @@ import Qt 4.6
Rectangle {
color: "lightSteelBlue"
- width: 800
- height: 600
+ width: 800; height: 600
+
ListModel {
id: list
ListElement {
@@ -12,10 +12,10 @@ Rectangle {
notes: [
ListElement {
noteText: "Lunch"
- },
- ListElement {
- noteText: "Party"
- }
+ },
+ ListElement {
+ noteText: "Party"
+ }
]
}
ListElement {
@@ -24,13 +24,13 @@ Rectangle {
notes: [
ListElement {
noteText: "Pickup kids"
- },
- ListElement {
- noteText: "Checkout kinetic"
- },
- ListElement {
- noteText: "Read email"
- }
+ },
+ ListElement {
+ noteText: "Checkout kinetic"
+ },
+ ListElement {
+ noteText: "Read email"
+ }
]
}
ListElement {
@@ -39,10 +39,10 @@ Rectangle {
notes: [
ListElement {
noteText: "Walk dog"
- },
- ListElement {
- noteText: "Buy newspaper"
- }
+ },
+ ListElement {
+ noteText: "Buy newspaper"
+ }
]
}
ListElement {
@@ -51,10 +51,10 @@ Rectangle {
notes: [
ListElement {
noteText: "Cook dinner"
- },
- ListElement {
- noteText: "Eat dinner"
- }
+ },
+ ListElement {
+ noteText: "Eat dinner"
+ }
]
}
ListElement {
@@ -63,10 +63,10 @@ Rectangle {
notes: [
ListElement {
noteText: "5:30pm Meeting"
- },
- ListElement {
- noteText: "Weed garden"
- }
+ },
+ ListElement {
+ noteText: "Weed garden"
+ }
]
}
ListElement {
@@ -75,10 +75,10 @@ Rectangle {
notes: [
ListElement {
noteText: "Still work"
- },
- ListElement {
- noteText: "Drink"
- }
+ },
+ ListElement {
+ noteText: "Drink"
+ }
]
}
ListElement {
@@ -87,28 +87,21 @@ Rectangle {
notes: [
ListElement {
noteText: "Drink"
- },
- ListElement {
- noteText: "Drink"
- }
+ },
+ ListElement {
+ noteText: "Drink"
+ }
]
}
}
Flickable {
id: flickable
- anchors.fill: parent
- viewportWidth: lay.width
+ anchors.fill: parent; viewportWidth: lay.width
Row {
id: lay
Repeater {
model: list
- Component {
- Day {
- day: name
- color: dayColor
- stickies: notes
- }
- }
+ Component { Day { day: name; color: dayColor; stickies: notes } }
}
}
}