summaryrefslogtreecommitdiffstats
path: root/demos/declarative/minehunt
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-09 05:14:21 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-09 05:14:21 (GMT)
commit6878a0b7c507d21366cacee0a09bafeb81726d82 (patch)
tree457c32d1ec3044efe99c5950bce1cca6db41e41a /demos/declarative/minehunt
parent7731e5f7d33d3ec251299c7651e777d7e0054573 (diff)
downloadQt-6878a0b7c507d21366cacee0a09bafeb81726d82.zip
Qt-6878a0b7c507d21366cacee0a09bafeb81726d82.tar.gz
Qt-6878a0b7c507d21366cacee0a09bafeb81726d82.tar.bz2
Move ComponentInstance functionality into Loader
Diffstat (limited to 'demos/declarative/minehunt')
-rw-r--r--demos/declarative/minehunt/minehunt.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/declarative/minehunt/minehunt.qml b/demos/declarative/minehunt/minehunt.qml
index fa169aa..72431af 100644
--- a/demos/declarative/minehunt/minehunt.qml
+++ b/demos/declarative/minehunt/minehunt.qml
@@ -135,8 +135,8 @@ Item {
x: 1
y: 1
Component {
- ComponentInstance {
- component: tile
+ Loader {
+ sourceComponent: tile
x: (index - (Math.floor(index/9) * 9)) * 41
y: Math.floor(index/9) * 41
}