diff options
author | Robin Burchell <robin+qt@viroteck.net> | 2012-06-18 18:00:19 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-18 21:39:32 +0200 |
commit | 86dd88729802767acc7b783c590142c808a2c6cc (patch) | |
tree | d26bb4e70b40026e7807eeaec2c9b71622d5ba5c /tools | |
parent | 60921df193e694b7a297b6ebd78e284b50440cf6 (diff) |
Updates to platform-specific code for Qt 5.
Change-Id: I69d237e28303e4d9b6bb57d97e84fb5dae1f4e48
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
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")); |