diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-06 06:03:27 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-06 06:03:27 (GMT) |
commit | 395169a94dba47baec683c95874de9556ba4952d (patch) | |
tree | 3ba150492683d850b89021d9d5acb6122d2d76ab /examples/declarative/dynamic | |
parent | dca8a799f307d1dea635ad9c011517e9d0d1594a (diff) | |
download | Qt-395169a94dba47baec683c95874de9556ba4952d.zip Qt-395169a94dba47baec683c95874de9556ba4952d.tar.gz Qt-395169a94dba47baec683c95874de9556ba4952d.tar.bz2 |
Fix bug in createQmlObject
Wasn't actually loading the object's context properly, with regard to
url resolution.
Diffstat (limited to 'examples/declarative/dynamic')
-rw-r--r-- | examples/declarative/dynamic/DynRect.qml | 1 | ||||
-rw-r--r-- | examples/declarative/dynamic/dynamic.js | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/dynamic/DynRect.qml b/examples/declarative/dynamic/DynRect.qml new file mode 100644 index 0000000..d9a2ef3 --- /dev/null +++ b/examples/declarative/dynamic/DynRect.qml @@ -0,0 +1 @@ +Rect { color: "steelblue"; width: 100; height: 100; id: newRect } diff --git a/examples/declarative/dynamic/dynamic.js b/examples/declarative/dynamic/dynamic.js index 5accc46..13317df 100644 --- a/examples/declarative/dynamic/dynamic.js +++ b/examples/declarative/dynamic/dynamic.js @@ -3,8 +3,7 @@ var fourthBox = null; var component = null; var started = false; function createQml(p) { - return createQmlObject('Rect { color: "steelblue"; width: 100;' - + 'height: 100; id: newRect }',p,'DynPart.qml'); + return createQmlObject('DynRect {}',p,'DynPart.qml'); } function destroyDynamicObject() { |