summaryrefslogtreecommitdiffstats
path: root/examples/declarative/workerscript
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-13 05:32:45 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-13 05:32:45 (GMT)
commita34993a9d8d1b9b3f3ad30604dbad3ad456bbdcd (patch)
tree28c4fc3995172d8c885454839acdbd60b8a28ac0 /examples/declarative/workerscript
parent61c13dad7bf04642033f01cad81ea422ab89b122 (diff)
parent7fba97dc74a27f836abfcf4941dac6e247379798 (diff)
downloadQt-a34993a9d8d1b9b3f3ad30604dbad3ad456bbdcd.zip
Qt-a34993a9d8d1b9b3f3ad30604dbad3ad456bbdcd.tar.gz
Qt-a34993a9d8d1b9b3f3ad30604dbad3ad456bbdcd.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'examples/declarative/workerscript')
-rw-r--r--examples/declarative/workerscript/workerscript.qml12
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/declarative/workerscript/workerscript.qml b/examples/declarative/workerscript/workerscript.qml
index 1c7a920..6c6253b 100644
--- a/examples/declarative/workerscript/workerscript.qml
+++ b/examples/declarative/workerscript/workerscript.qml
@@ -1,7 +1,7 @@
import Qt 4.7
Rectangle {
- width: 480; height: 320;
+ width: 480; height: 320
WorkerScript {
id: myWorker
@@ -16,8 +16,7 @@ Rectangle {
Rectangle {
width: 200; height: 200
- anchors.left: parent.left
- anchors.leftMargin: 20
+ anchors.left: parent.left; anchors.leftMargin: 20
color: "red"
MouseArea {
@@ -28,8 +27,7 @@ Rectangle {
Rectangle {
width: 200; height: 200
- anchors.right: parent.right
- anchors.rightMargin: 20
+ anchors.right: parent.right; anchors.rightMargin: 20
color: "blue"
MouseArea {
@@ -40,8 +38,6 @@ Rectangle {
Text {
text: "Click a Rectangle!"
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 50
+ anchors { horizontalCenter: parent.horizontalCenter; bottom: parent.bottom; bottomMargin: 50 }
}
}