diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-11-29 06:39:31 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-11-29 06:39:31 (GMT) |
commit | 4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4 (patch) | |
tree | 9adb0250ed390477e37741de97bede2bae148f7e /tools/qml/main.cpp | |
parent | f7d66442963e1380a4f2db3d24cb24aa9d5c63ad (diff) | |
parent | bf5571b485420a945e9fdf3bf5b31cfe4c4d482b (diff) | |
download | Qt-4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4.zip Qt-4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4.tar.gz Qt-4592fc2e481b42bbbe1f59e575ce3c9b9af9c9e4.tar.bz2 |
Merge remote branch 'origin/master' into lighthouse-master
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r-- | tools/qml/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index 579f1ab..209c72f 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -155,7 +155,11 @@ void usage() qWarning(" -I <directory> ........................... prepend to the module import search path,"); qWarning(" display path if <directory> is empty"); qWarning(" -P <directory> ........................... prepend to the plugin search path"); +#if defined(Q_WS_MAC) + qWarning(" -no-opengl ............................... don't use a QGLWidget for the viewport"); +#else qWarning(" -opengl .................................. use a QGLWidget for the viewport"); +#endif qWarning(" -script <path> ........................... set the script to use"); qWarning(" -scriptopts <options>|help ............... set the script options to use"); @@ -370,8 +374,13 @@ static void parseCommandLineOptions(const QStringList &arguments) } else if (arg == "-translation") { if (lastArg) usage(); opts.translationFile = arguments.at(++i); +#if defined(Q_WS_MAC) + } else if (arg == "-no-opengl") { + opts.useGL = false; +#else } else if (arg == "-opengl") { opts.useGL = true; +#endif } else if (arg == "-qmlbrowser") { opts.useNativeFileBrowser = false; } else if (arg == "-warnings") { |