diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/main.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index 93b6ace6..6ce2bc1f 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -154,7 +154,7 @@ 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) +#if defined(Q_OS_MAC) qWarning(" -no-opengl ............................... don't use a QGLWidget for the viewport"); qWarning(" -opengl .................................. use a QGLWidget for the viewport (default)"); #else @@ -217,7 +217,7 @@ struct ViewerOptions useNativeFileBrowser = false; #endif -#if defined(Q_WS_MAC) +#if defined(Q_OS_MAC) useGL = true; #endif } @@ -523,21 +523,6 @@ int main(int argc, char ** argv) { systemMsgOutput = qInstallMsgHandler(myMessageOutput); -#if defined (Q_WS_X11) || defined (Q_WS_MAC) - //### default to using raster graphics backend for now - bool gsSpecified = false; - for (int i = 0; i < argc; ++i) { - QString arg = QString::fromLatin1(argv[i]); - if (arg == QLatin1String("-graphicssystem")) { - gsSpecified = true; - break; - } - } - - if (!gsSpecified) - QApplication::setGraphicsSystem(QLatin1String("raster")); -#endif - Application app(argc, argv); app.setApplicationName(QLatin1String("QtQmlViewer")); app.setOrganizationName(QLatin1String("Nokia")); |