summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/createQmlObject.qml
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-07-20 18:26:46 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-07-20 18:26:46 (GMT)
commit4d344bbc7a780e861f83962a166e82a0648813f1 (patch)
tree8f6937de28c90cd7720a8e38e0312d6b8a138125 /doc/src/snippets/declarative/createQmlObject.qml
parent8678d9b5e70f6076e1e915d8bf3938136fe4018c (diff)
parent3ff96da38b0906a6b2e398aea3469b1ab3c72e2c (diff)
downloadQt-4d344bbc7a780e861f83962a166e82a0648813f1.zip
Qt-4d344bbc7a780e861f83962a166e82a0648813f1.tar.gz
Qt-4d344bbc7a780e861f83962a166e82a0648813f1.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Make Item::transformOriginPoint read-only Ensure the boundingRect() of Text is correctly calculated. Better defaults for MouseArea's drag. various doc improvements for animation elements fixes for dynamic object creation docs Change docs to show how to define enum properties Improve documentation on setting arbitray transform origin points Ensure released VisualItemModel items are removed from the scene. Improve QML text rendering when LCD smoothing is enabled for OS X.
Diffstat (limited to 'doc/src/snippets/declarative/createQmlObject.qml')
-rw-r--r--doc/src/snippets/declarative/createQmlObject.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/src/snippets/declarative/createQmlObject.qml b/doc/src/snippets/declarative/createQmlObject.qml
index 380f6f1..64dd21d 100644
--- a/doc/src/snippets/declarative/createQmlObject.qml
+++ b/doc/src/snippets/declarative/createQmlObject.qml
@@ -42,14 +42,13 @@ import Qt 4.7
Rectangle {
id: parentItem
- property QtObject newObject
width: 100
height: 100
function createIt() {
//![0]
-newObject = Qt.createQmlObject('import Qt 4.7; Rectangle {color: "red"; width: 20; height: 20}',
+var newObject = Qt.createQmlObject('import Qt 4.7; Rectangle {color: "red"; width: 20; height: 20}',
parentItem, "dynamicSnippet1");
//![0]
}