diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-07 23:00:09 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-07 23:00:09 (GMT) |
commit | 023790d6b243254f88d3aa429750ac872f16a9bf (patch) | |
tree | 3db341eec0127e9a71a988380ff539de932a1d5a /src/declarative | |
parent | 7c5bff438bcad62c79ba4febdd3f07fce396803e (diff) | |
download | Qt-023790d6b243254f88d3aa429750ac872f16a9bf.zip Qt-023790d6b243254f88d3aa429750ac872f16a9bf.tar.gz Qt-023790d6b243254f88d3aa429750ac872f16a9bf.tar.bz2 |
Fix docs.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 2 |
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 |