diff options
author | mae <qt-info@nokia.com> | 2010-03-02 11:13:44 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-03-02 11:56:04 (GMT) |
commit | b277a6932c32ce4bae015cce6e1c00c322b4a63b (patch) | |
tree | f5fb2085d419e309e72a71bc2cd089a7fe801e49 /tools | |
parent | 2d99a28a583b099cc0281b39b88b0bda8f5e5f7f (diff) | |
download | Qt-b277a6932c32ce4bae015cce6e1c00c322b4a63b.zip Qt-b277a6932c32ce4bae015cce6e1c00c322b4a63b.tar.gz Qt-b277a6932c32ce4bae015cce6e1c00c322b4a63b.tar.bz2 |
Let the 'qml' runtime use its applicationDirPath as importsPath
The is analog to the plugin system in Qt. It makes it possible
to ship an executable with extra plugins resp. qml import modules
without creating a qt.conf.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index 6339813..a4de339 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -311,8 +311,11 @@ int main(int argc, char ** argv) usage(); } + viewer.addLibraryPath(QCoreApplication::applicationDirPath()); + foreach (QString lib, libraries) viewer.addLibraryPath(lib); + viewer.setNetworkCacheSize(cache); viewer.setRecordFile(recordfile); if (resizeview) |