diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-07-14 04:24:56 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-07-14 04:24:56 (GMT) |
commit | a093c5ef65aa2c28f52f78c8be5bbe7d567646fa (patch) | |
tree | dd8f8774eb3e92ec49ee31abd15e4ea2e2bbcb29 /tools/qmlviewer/main.cpp | |
parent | 4ca1f77ab54f1e02045dc7e680bd99103f680fea (diff) | |
download | Qt-a093c5ef65aa2c28f52f78c8be5bbe7d567646fa.zip Qt-a093c5ef65aa2c28f52f78c8be5bbe7d567646fa.tar.gz Qt-a093c5ef65aa2c28f52f78c8be5bbe7d567646fa.tar.bz2 |
Libraries and library versioning.
Diffstat (limited to 'tools/qmlviewer/main.cpp')
-rw-r--r-- | tools/qmlviewer/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp index 335c609..5e5a50a 100644 --- a/tools/qmlviewer/main.cpp +++ b/tools/qmlviewer/main.cpp @@ -124,6 +124,8 @@ int main(int argc, char ** argv) usage(); translationFile = argv[i + 1]; ++i; + } else if (arg == "-L") { + libraries << QString(argv[++i]); } else if (arg[0] != '-') { fileName = arg; } else if (1 || arg == "-help") { @@ -138,6 +140,8 @@ int main(int argc, char ** argv) } QmlViewer viewer(testMode, testDir, 0, frameless ? Qt::FramelessWindowHint : Qt::Widget); + foreach (QString lib, libraries) + viewer.addLibraryPath(lib); viewer.setCacheEnabled(cache); viewer.setRecordFile(recordfile); if (period>0) @@ -160,4 +164,3 @@ int main(int argc, char ** argv) return app.exec(); } - |