diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-20 05:36:25 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-20 05:36:25 (GMT) |
commit | 1aeab18c1e78e201a38d76a24e8cfd2733e4f5e7 (patch) | |
tree | 39ad1c03ddd858ddf18463ae61cb1aca2f7cd7fb /tools/qmlviewer/qmlviewer.cpp | |
parent | 47f2559f10780f81a1fd1387b2eebeb804fe9378 (diff) | |
download | Qt-1aeab18c1e78e201a38d76a24e8cfd2733e4f5e7.zip Qt-1aeab18c1e78e201a38d76a24e8cfd2733e4f5e7.tar.gz Qt-1aeab18c1e78e201a38d76a24e8cfd2733e4f5e7.tar.bz2 |
Basic qualified type support.
Can now:
DialLibrary.Dial { ... }
without any import statement.
Can also run qmlviewer with -L DialLibrary then use Dial { ... }.
The exact way this works will almost definitely change to ensure predictable
behaviour under future type additions to scopes.
Diffstat (limited to 'tools/qmlviewer/qmlviewer.cpp')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index 97db22e..4b0a83a 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -314,6 +314,10 @@ void QmlViewer::toggleRecording() setRecording(recording); } +void QmlViewer::addLibraryPath(const QString& lib) +{ + canvas->engine()->addNameSpacePath("",lib); +} void QmlViewer::reload() { |