Use "QT += testlib" consistently
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 27 May 2011 03:20:52 +0000 (13:20 +1000)
committerQt Continuous Integration System <qt-info@nokia.com>
Fri, 27 May 2011 06:41:00 +0000 (08:41 +0200)
If a project uses "load(qttest_p4)" it doesn't need to add testlib to
the CONFIG or QT variables.  If a project does not use
"load(qttest_p4)", it should add "testlib" to the QT variable.

Change-Id: If28353713ccdfe13612682e3e88dadebe2f2eefd
Reviewed-on: http://codereview.qt.nokia.com/159
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
examples/qtestlib/tutorial1/tutorial1.pro
examples/qtestlib/tutorial2/tutorial2.pro
examples/qtestlib/tutorial3/tutorial3.pro
examples/qtestlib/tutorial4/tutorial4.pro
examples/qtestlib/tutorial5/tutorial5.pro
tests/auto/qcompleter/qcompleter.pro
tests/auto/qerrormessage/qerrormessage.pro
tests/auto/qlocalsocket/lackey/lackey.pro
tests/auto/qmessagebox/qmessagebox.pro
tests/auto/qtipc/lackey/lackey.pro
tests/auto/uic/uic.pro

index fdbf2fc..6da372b 100644 (file)
@@ -1,5 +1,5 @@
 SOURCES = testqstring.cpp
-CONFIG  += qtestlib
+QT += testlib
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial1
index 647ddd7..06cf30f 100644 (file)
@@ -1,5 +1,5 @@
 SOURCES = testqstring.cpp
-CONFIG  += qtestlib
+QT += testlib
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial2
index 887fc9a..ff39bd4 100644 (file)
@@ -1,5 +1,5 @@
 SOURCES = testgui.cpp
-CONFIG  += qtestlib
+QT += testlib
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial3
index 082a3a3..ae84726 100644 (file)
@@ -1,5 +1,5 @@
 SOURCES = testgui.cpp
-CONFIG  += qtestlib
+QT += testlib
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial4
index 4f70284..085dfd8 100644 (file)
@@ -1,5 +1,5 @@
 SOURCES = benchmarking.cpp
-CONFIG  += qtestlib
+QT += testlib
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/qtestlib/tutorial5
index 39b5dd7..bd352d8 100644 (file)
@@ -1,16 +1,8 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Apr 26 13:53:24 2006
-######################################################################
 load(qttest_p4)
 TEMPLATE = app
 TARGET = tst_qcompleter
 DEPENDPATH += .
 INCLUDEPATH += . ..
 
-CONFIG += console qtestlib
-
 # Input
 SOURCES += tst_qcompleter.cpp 
-
-
-
index 0db3610..1c24aa8 100644 (file)
@@ -1,15 +1,8 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Apr 26 13:53:24 2006
-######################################################################
 load(qttest_p4)
 TEMPLATE = app
 TARGET = tst_qerrormessage
 DEPENDPATH += .
 INCLUDEPATH += . 
 
-CONFIG += console qtestlib
 # Input
 SOURCES += tst_qerrormessage.cpp
-
-
-
index 6af58b1..2573222 100644 (file)
@@ -1,10 +1,6 @@
 #include(../src/src.pri)
 
-QT = core script network
-
-requires(contains(QT_CONFIG,script))
-
-CONFIG += qtestlib
+QT = core script network testlib
 
 DESTDIR = ./
 
index 9fa1738..a845e21 100644 (file)
@@ -1,13 +1,9 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Wed Apr 26 13:53:24 2006
-######################################################################
 load(qttest_p4)
 TEMPLATE = app
 TARGET = tst_qmessagebox
 DEPENDPATH += .
 INCLUDEPATH += . 
 
-CONFIG += console qtestlib
 # Input
 SOURCES += tst_qmessagebox.cpp 
 
index 2fa364c..91659d7 100644 (file)
@@ -1,17 +1,12 @@
 include(../qsharedmemory/src/src.pri)
 
-QT = core script
-QT += core-private
-
-CONFIG += qtestlib
+QT = core-private script testlib
 
 DESTDIR = ./
 
 win32: CONFIG += console
 mac:CONFIG -= app_bundle
 
-requires(contains(QT_CONFIG,script))
-
 DEFINES        += QSHAREDMEMORY_DEBUG
 DEFINES        += QSYSTEMSEMAPHORE_DEBUG
 
index 355cb56..0045015 100644 (file)
@@ -1,6 +1,5 @@
 load(qttest_p4)
 
-CONFIG += qtestlib
 SOURCES += tst_uic.cpp
 TARGET = tst_uic