summaryrefslogtreecommitdiffstats
path: root/examples/declarative/minehunt/Description.qml
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-04-28 06:54:19 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-04-28 06:54:19 (GMT)
commitff5cf254eb5815460c0a14a0c7f7b077f308e56f (patch)
tree1a3ab764a4aefcbb04a042fcc33e8be1ac88197b /examples/declarative/minehunt/Description.qml
parent864365e44942a55c37ba3f07b101e576394fa889 (diff)
parentef26f5c258500d98735ef3f90fa9c9576a945d56 (diff)
downloadQt-ff5cf254eb5815460c0a14a0c7f7b077f308e56f.zip
Qt-ff5cf254eb5815460c0a14a0c7f7b077f308e56f.tar.gz
Qt-ff5cf254eb5815460c0a14a0c7f7b077f308e56f.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative/minehunt/Description.qml')
-rw-r--r--examples/declarative/minehunt/Description.qml48
1 files changed, 38 insertions, 10 deletions
diff --git a/examples/declarative/minehunt/Description.qml b/examples/declarative/minehunt/Description.qml
index 5bda5f8..f59c8f9 100644
--- a/examples/declarative/minehunt/Description.qml
+++ b/examples/declarative/minehunt/Description.qml
@@ -1,10 +1,38 @@
-<Item id="Page" height="{MyText.height + 20}" >
- <properties><Property name="text" /></properties>
- <MouseRegion anchors.fill="{parent}" drag.target="{Page}" drag.axis="xy" drag.xmin="0" drag.xmax="1000" drag.ymin="0" drag.ymax="1000"/>
- <Rect radius="10" anchors.fill="{parent}" color="lightsteelblue" />
- <Item x="10" y="10" width="{parent.width - 20}" height="{parent.height - 20}">
- <Text id="MyText" text="{Page.text}" width="{parent.width}" clip="true" wrap="true"/>
- </Item>
-
- <filter><Shadow xOffset="5" yOffset="5" /></filter>
-</Item>
+Item {
+ id: Page
+ height: MyText.height + 20
+ properties: Property {
+ name: "text"
+ }
+ MouseRegion {
+ anchors.fill: parent
+ drag.target: Page
+ drag.axis: "xy"
+ drag.xmin: 0
+ drag.xmax: 1000
+ drag.ymin: 0
+ drag.ymax: 1000
+ }
+ Rect {
+ radius: 10
+ anchors.fill: parent
+ color: "lightsteelblue"
+ }
+ Item {
+ x: 10
+ y: 10
+ width: parent.width - 20
+ height: parent.height - 20
+ Text {
+ id: MyText
+ text: Page.text
+ width: parent.width
+ clip: true
+ wrap: true
+ }
+ }
+ filter: Shadow {
+ xOffset: 5
+ yOffset: 5
+ }
+}