summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-07 23:00:09 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-07 23:00:09 (GMT)
commit023790d6b243254f88d3aa429750ac872f16a9bf (patch)
tree3db341eec0127e9a71a988380ff539de932a1d5a /src/declarative/qml
parent7c5bff438bcad62c79ba4febdd3f07fce396803e (diff)
downloadQt-023790d6b243254f88d3aa429750ac872f16a9bf.zip
Qt-023790d6b243254f88d3aa429750ac872f16a9bf.tar.gz
Qt-023790d6b243254f88d3aa429750ac872f16a9bf.tar.bz2
Fix docs.
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index d489d74..f45b7b8 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -311,7 +311,7 @@ QmlWorkerScriptEngine *QmlEnginePrivate::getWorkerScriptEngine()
\code
QmlEngine engine;
- QmlComponent component(&engine, "Text { text: \"Hello world!\" }");
+ QmlComponent component(&engine, "import Qt 4.6\nText { text: \"Hello world!\" }", QUrl());
QmlGraphicsItem *item = qobject_cast<QmlGraphicsItem *>(component.create());
//add item to view, etc