From 86dd88729802767acc7b783c590142c808a2c6cc Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Mon, 18 Jun 2012 18:00:19 +0200 Subject: Updates to platform-specific code for Qt 5. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I69d237e28303e4d9b6bb57d97e84fb5dae1f4e48 Reviewed-by: Samuel Rødal --- tools/qml/main.cpp | 19 ++----------------- 1 file 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 ........................... prepend to the module import search path,"); qWarning(" display path if is empty"); qWarning(" -P ........................... 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")); -- cgit v1.2.3