summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dynamic')
-rw-r--r--examples/declarative/dynamic/DynRect.qml2
-rw-r--r--examples/declarative/dynamic/dynamic.qml2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/declarative/dynamic/DynRect.qml b/examples/declarative/dynamic/DynRect.qml
index d9a2ef3..3f83afb 100644
--- a/examples/declarative/dynamic/DynRect.qml
+++ b/examples/declarative/dynamic/DynRect.qml
@@ -1 +1,3 @@
+import Qt 4.6
+
Rect { color: "steelblue"; width: 100; height: 100; id: newRect }
diff --git a/examples/declarative/dynamic/dynamic.qml b/examples/declarative/dynamic/dynamic.qml
index b9f3b35..286e449 100644
--- a/examples/declarative/dynamic/dynamic.qml
+++ b/examples/declarative/dynamic/dynamic.qml
@@ -1,3 +1,5 @@
+import Qt 4.6
+
Rect { id: page; width: 800; height: 800; color:"black"
Script { source: "dynamic.js" }
property bool extendStars: false;