diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-05-19 14:38:37 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-05-19 14:38:37 (GMT) |
commit | 38420b1f63162802ede4861faf6d34dfa956d486 (patch) | |
tree | 20a192420bbd44840a3193a40cf64461e62f89ed /examples/declarative/toys/dynamicscene/qml | |
parent | 7bb43814f4eb919b330b29eef52efbaf92c698b0 (diff) | |
download | Qt-38420b1f63162802ede4861faf6d34dfa956d486.zip Qt-38420b1f63162802ede4861faf6d34dfa956d486.tar.gz Qt-38420b1f63162802ede4861faf6d34dfa956d486.tar.bz2 |
Fix dynamicscene example
In all the renaming (presumably) the moon broke, now fixed.
Also made it slightly smaller, to be friendlier to desktop systems with
small screens (and the fixed size qtdemo)
Diffstat (limited to 'examples/declarative/toys/dynamicscene/qml')
-rw-r--r-- | examples/declarative/toys/dynamicscene/qml/GenericSceneItem.qml | 9 | ||||
-rw-r--r-- | examples/declarative/toys/dynamicscene/qml/itemCreation.js | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/examples/declarative/toys/dynamicscene/qml/GenericSceneItem.qml b/examples/declarative/toys/dynamicscene/qml/GenericSceneItem.qml new file mode 100644 index 0000000..de096ad --- /dev/null +++ b/examples/declarative/toys/dynamicscene/qml/GenericSceneItem.qml @@ -0,0 +1,9 @@ +import Qt 4.7 + +Image { + property bool created: false + property string image + + source: image + +} diff --git a/examples/declarative/toys/dynamicscene/qml/itemCreation.js b/examples/declarative/toys/dynamicscene/qml/itemCreation.js index 59750f3..443c448 100644 --- a/examples/declarative/toys/dynamicscene/qml/itemCreation.js +++ b/examples/declarative/toys/dynamicscene/qml/itemCreation.js @@ -36,7 +36,7 @@ function createItem() { } else if (itemComponent.status == Component.Error) { draggedItem = null; console.log("error creating component"); - console.log(component.errorsString()); + console.log(itemComponent.errorsString()); } } |