Remove qpa option form configure.exe
authorDebao Zhang <dbzhang800@gmail.com>
Wed, 28 Mar 2012 17:20:09 +0000 (10:20 -0700)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Mar 2012 22:38:31 +0000 (00:38 +0200)
Change-Id: Ib35b65be43f76ac4babf6e7dd3b0763274f0ab8c
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
tools/configure/configureapp.cpp

index 1b25911..6ed419d 100644 (file)
@@ -927,8 +927,6 @@ void Configure::parseCmdLine()
             sybase = configCmdLine.at(i);
         } else if (configCmdLine.at(i).startsWith("SYBASE_LIBS=")) {
             sybaseLibs = configCmdLine.at(i);
-        } else if (configCmdLine.at(i) == "-qpa") {
-            dictionary["QPA"] = "yes";
         }
 
         else if ((configCmdLine.at(i) == "-override-version") || (configCmdLine.at(i) == "-version-override")){
@@ -1482,7 +1480,7 @@ bool Configure::displayHelp()
                     "[-no-multimedia] [-multimedia] [-no-audio-backend] [-audio-backend]\n"
                     "[-no-script] [-script] [-no-scripttools] [-scripttools]\n"
                     "[-no-webkit] [-webkit] [-webkit-debug]\n"
-                    "[-no-directwrite] [-directwrite] [-qpa] [-no-widgets] [-icu]\n\n", 0, 7);
+                    "[-no-directwrite] [-directwrite] [-no-widgets] [-icu]\n\n", 0, 7);
 
         desc("Installation options:\n\n");
 
@@ -2653,14 +2651,15 @@ void Configure::generateQConfigPri()
             configStream << " incredibuild_xge";
         if (dictionary["PLUGIN_MANIFESTS"] == "no")
             configStream << " no_plugin_manifest";
-        if (dictionary["QPA"] == "yes")
-            configStream << " qpa";
         if (dictionary["CROSS_COMPILE"] == "yes")
             configStream << " cross_compile";
 
         if (dictionary["DIRECTWRITE"] == "yes")
             configStream << "directwrite";
 
+        // ### For compatibility only, should be removed later.
+        configStream << " qpa";
+
         configStream << endl;
         configStream << "QT_ARCH = " << dictionary["QT_ARCH"] << endl;
         configStream << "QT_HOST_ARCH = " << dictionary["QT_HOST_ARCH"] << endl;
@@ -2797,8 +2796,8 @@ void Configure::generateConfigfiles()
             tmpStream << endl;
         }
 
-        if (dictionary[ "QPA" ] == "yes")
-            tmpStream << endl << "#define Q_WS_QPA" << endl;
+        // ### For compatibility only, should be removed later.
+        tmpStream << endl << "#define Q_WS_QPA" << endl;
 
         tmpStream << endl << "// Compile time features" << endl;