summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/Sun.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dynamic/Sun.qml')
-rw-r--r--examples/declarative/dynamic/Sun.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/declarative/dynamic/Sun.qml b/examples/declarative/dynamic/Sun.qml
index 16d9907..a9f5d40 100644
--- a/examples/declarative/dynamic/Sun.qml
+++ b/examples/declarative/dynamic/Sun.qml
@@ -3,9 +3,11 @@ import Qt 4.6
Image {
id: sun
property bool created: false
+ property string image: "images/sun.png"
onCreatedChanged: if(created){window.activeSuns++;}else{window.activeSuns--;}
- source: "images/sun.png";
+ source: image;
+ z: 1
//x and y get set when instantiated
//head offscreen