summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-02-18 16:08:40 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-02-18 16:08:40 +0100
commitaa8e59c09cb03f56047ca65c3e89dd6daeec4d73 (patch)
treed45d5513511b0767925f453b637bda08139562da
parentae764c678c78c1e3530a6d0dc2de2a17c5d4815a (diff)
parentcf8ef1676b70d70f5e1d2725d0b24d7df5e8cfe4 (diff)
Merge remote-tracking branch 'origin/stable' into dev
-rw-r--r--examples/declarative/declarative.pro2
-rw-r--r--src/declarative/declarative.pro2
-rw-r--r--src/declarative/graphicsitems/qdeclarativerepeater.cpp11
-rw-r--r--src/declarative/util/util.pri2
-rw-r--r--src/doc/qtdeclarative.qdocconf12
-rw-r--r--src/doc/src/declarative/anchor-layout.qdoc3
-rw-r--r--src/doc/src/declarative/propertybinding.qdoc3
-rw-r--r--src/doc/src/declarative/qdeclarativeintro.qdoc3
-rw-r--r--src/doc/src/declarative/qtbinding.qdoc6
-rw-r--r--src/imports/imports.pro4
-rw-r--r--src/plugins/plugins.pro2
-rw-r--r--tests/auto/bic/data/QtDeclarative.5.0.0.linux-gcc-ia32.txt5
-rw-r--r--tests/auto/declarative/declarative.pro8
-rw-r--r--tests/auto/declarative/examples/examples.pro7
-rw-r--r--tests/auto/declarative/moduleqt47/moduleqt47.pro3
-rw-r--r--tests/auto/declarative/parserstress/parserstress.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro3
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro3
-rw-r--r--tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro3
-rw-r--r--tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro3
-rw-r--r--tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro3
-rw-r--r--tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro3
-rw-r--r--tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro3
-rw-r--r--tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro3
-rw-r--r--tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro3
-rw-r--r--tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro3
-rw-r--r--tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro3
-rw-r--r--tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro3
-rw-r--r--tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro3
-rw-r--r--tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro3
-rw-r--r--tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro3
-rw-r--r--tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro3
-rw-r--r--tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro3
-rw-r--r--tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro3
-rw-r--r--tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro3
-rw-r--r--tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro3
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro3
-rw-r--r--tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro3
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro3
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro3
-rw-r--r--tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro3
-rw-r--r--tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro3
-rw-r--r--tests/auto/declarative/qmlvisual/qmlvisual.pro3
-rw-r--r--tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro3
-rw-r--r--tests/manual/declarative/declarative.pro2
-rw-r--r--tools/qml/qml.pri2
-rw-r--r--tools/qml/qml.pro6
87 files changed, 108 insertions, 182 deletions
diff --git a/examples/declarative/declarative.pro b/examples/declarative/declarative.pro
index 4079afc2..91378da9 100644
--- a/examples/declarative/declarative.pro
+++ b/examples/declarative/declarative.pro
@@ -28,7 +28,7 @@ SUBDIRS = \
ui-components
# OpenGL shader examples requires opengl and they contain some C++ and need to be built
-contains(QT_CONFIG, opengl): SUBDIRS += shadereffects
+qtHaveModule(opengl): SUBDIRS += shadereffects
# These examples contain no C++ and can simply be copied
EXAMPLE_FILES = \
diff --git a/src/declarative/declarative.pro b/src/declarative/declarative.pro
index 365cb04e..c5741c2b 100644
--- a/src/declarative/declarative.pro
+++ b/src/declarative/declarative.pro
@@ -1,6 +1,6 @@
TARGET = QtDeclarative
QT = core-private gui-private widgets-private script-private
-!isEmpty(QT.xmlpatterns.name): QT_PRIVATE = xmlpatterns
+qtHaveModule(xmlpatterns): QT_PRIVATE = xmlpatterns
else: DEFINES += QT_NO_XMLPATTERNS
MODULE=declarative
diff --git a/src/declarative/graphicsitems/qdeclarativerepeater.cpp b/src/declarative/graphicsitems/qdeclarativerepeater.cpp
index 44721a9e..0e9a9be6 100644
--- a/src/declarative/graphicsitems/qdeclarativerepeater.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerepeater.cpp
@@ -110,15 +110,16 @@ QDeclarativeRepeaterPrivate::~QDeclarativeRepeaterPrivate()
The Repeater element creates all of its delegate items when the repeater is first
created. This can be inefficient if there are a large number of delegate items and
not all of the items are required to be visible at the same time. If this is the case,
- consider using other view elements like ListView (which only creates delegate items
- when they are scrolled into view) or use the \l {Dynamic Object Creation} methods to
+ consider using other view elements like ListView (which only creates delegate items
+ when they are scrolled into view) or use the \l {Dynamic Object Creation} methods to
create items as they are required.
- Also, note that Repeater is \l {Item}-based, and can only repeat \l {Item}-derived objects.
+ Also, note that Repeater is \l {Item}-based, and can only repeat \l {Item}-derived objects.
For example, it cannot be used to repeat QtObjects:
- \badcode
+ \code
+ //bad code
Item {
- //XXX does not work! Can't repeat QtObject as it doesn't derive from Item.
+ //Can't repeat QtObject as it doesn't derive from Item.
Repeater {
model: 10
QtObject {}
diff --git a/src/declarative/util/util.pri b/src/declarative/util/util.pri
index 62fa8f16..3978b5eb 100644
--- a/src/declarative/util/util.pri
+++ b/src/declarative/util/util.pri
@@ -65,7 +65,7 @@ HEADERS += \
$$PWD/qdeclarativelistmodelworkeragent_p.h \
$$PWD/qlistmodelinterface_p.h
-contains(QT_CONFIG, xmlpatterns) {
+qtHaveModule(xmlpatterns) {
QT+=xmlpatterns
SOURCES += $$PWD/qdeclarativexmllistmodel.cpp
HEADERS += $$PWD/qdeclarativexmllistmodel_p.h
diff --git a/src/doc/qtdeclarative.qdocconf b/src/doc/qtdeclarative.qdocconf
index 6a87d453..e15a68c2 100644
--- a/src/doc/qtdeclarative.qdocconf
+++ b/src/doc/qtdeclarative.qdocconf
@@ -2,22 +2,22 @@ include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
project = QtDeclarative
description = "Qt Declarative Examples Documentation"
-url = http://qt-project.org/doc/qt-5.0/qtdeclarative
-version = 5.0.1
+url = http://qt-project.org/doc/qt-$QT_VER/qtdeclarative
+version = $QT_VERSION
exampleinstallpath = declarative
qhp.projects = QtDeclarative
qhp.QtDeclarative.file = qtdeclarative.qhp
-qhp.QtDeclarative.namespace = org.qt-project.qtdeclarative.500
+qhp.QtDeclarative.namespace = org.qt-project.qtdeclarative.$QT_VERSION_TAG
qhp.QtDeclarative.virtualFolder = declarative
qhp.QtDeclarative.indexTitle = Qt Quick
qhp.QtDeclarative.indexRoot =
-qhp.QtDeclarative.filterAttributes = declarative 5.0.1 qtrefdoc
-qhp.QtDeclarative.customFilters.Qt.name = declarative 5.0.1
-qhp.QtDeclarative.customFilters.Qt.filterAttributes = declarative 5.0.1
+qhp.QtDeclarative.filterAttributes = declarative $QT_VERSION qtrefdoc
+qhp.QtDeclarative.customFilters.Qt.name = declarative $QT_VERSION
+qhp.QtDeclarative.customFilters.Qt.filterAttributes = declarative $QT_VERSION
depends += qtcore qtgui qtscript qtdoc
diff --git a/src/doc/src/declarative/anchor-layout.qdoc b/src/doc/src/declarative/anchor-layout.qdoc
index a1c83cec..8aff358a 100644
--- a/src/doc/src/declarative/anchor-layout.qdoc
+++ b/src/doc/src/declarative/anchor-layout.qdoc
@@ -124,7 +124,8 @@ edge, the margin is not applied.
For performance reasons, you can only anchor an item to its siblings and direct parent. For example,
the following anchor is invalid and would produce a warning:
-\badcode
+\code
+//bad code
Item {
id: group1
Rectangle { id: rect1; ... }
diff --git a/src/doc/src/declarative/propertybinding.qdoc b/src/doc/src/declarative/propertybinding.qdoc
index 60de77ce..450d2265 100644
--- a/src/doc/src/declarative/propertybinding.qdoc
+++ b/src/doc/src/declarative/propertybinding.qdoc
@@ -109,7 +109,8 @@ properties only allow you to assign a value that matches the property type. For
example, if a property is a real, and if you try to assign a string to it you
will get an error.
-\badcode
+\code
+//bad code
property real volume: "four" //generates an error
\endcode
diff --git a/src/doc/src/declarative/qdeclarativeintro.qdoc b/src/doc/src/declarative/qdeclarativeintro.qdoc
index 8fdc03aa..e5e52407 100644
--- a/src/doc/src/declarative/qdeclarativeintro.qdoc
+++ b/src/doc/src/declarative/qdeclarativeintro.qdoc
@@ -212,7 +212,8 @@ QML properties are what is known as \e type-safe. That is, they only allow you t
matches the property type. For example, the \c x property of item is a real, and if you try to assign
a string to it you will get an error.
-\badcode
+\code
+//bad code
Item {
x: "hello" // illegal!
}
diff --git a/src/doc/src/declarative/qtbinding.qdoc b/src/doc/src/declarative/qtbinding.qdoc
index 58d28159..f173025c 100644
--- a/src/doc/src/declarative/qtbinding.qdoc
+++ b/src/doc/src/declarative/qtbinding.qdoc
@@ -391,8 +391,8 @@ say you have a custom element \c PushButton with a \c buttonText property that i
the value of a \c m_buttonText member variable. Modifying the member variable directly like this is
not a good idea:
-\badcode
-// BAD!
+\code
+//bad code
QDeclarativeComponent component(engine, "MyButton.qml");
PushButton *button = qobject_cast<PushButton*>(component.create());
button->m_buttonText = "Click me";
@@ -665,5 +665,3 @@ be used to build the application resources:
See \l {The Qt Resource System} for more information.
*/
-
-
diff --git a/src/imports/imports.pro b/src/imports/imports.pro
index aba013aa..2d7f4a55 100644
--- a/src/imports/imports.pro
+++ b/src/imports/imports.pro
@@ -1,6 +1,6 @@
TEMPLATE = subdirs
SUBDIRS += folderlistmodel particles gestures builtins.pro
-contains(QT_CONFIG, opengl):!contains(QT_CONFIG, opengles1): SUBDIRS += shaders
+qtHaveModule(opengl):!contains(QT_CONFIG, opengles1): SUBDIRS += shaders
-!isEmpty(QT.webkitwidgets.name): SUBDIRS += webview
+qtHaveModule(webkitwidgets): SUBDIRS += webview
diff --git a/src/plugins/plugins.pro b/src/plugins/plugins.pro
index 49039871..7c4b8370 100644
--- a/src/plugins/plugins.pro
+++ b/src/plugins/plugins.pro
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
SUBDIRS += qmltooling
-contains(QT_CONFIG, designer):SUBDIRS += qdeclarativeview
+qtHaveModule(designer): SUBDIRS += qdeclarativeview
diff --git a/tests/auto/bic/data/QtDeclarative.5.0.0.linux-gcc-ia32.txt b/tests/auto/bic/data/QtDeclarative.5.0.0.linux-gcc-ia32.txt
index 7cc0bfd4..daa9c2b4 100644
--- a/tests/auto/bic/data/QtDeclarative.5.0.0.linux-gcc-ia32.txt
+++ b/tests/auto/bic/data/QtDeclarative.5.0.0.linux-gcc-ia32.txt
@@ -2412,11 +2412,6 @@ QObjectCleanupHandler (0xb42ac5dc) 0
QObject (0xb409e578) 0
primary-for QObjectCleanupHandler (0xb42ac5dc)
-Class QPointerBase
- size=8 align=4
- base size=8 base align=4
-QPointerBase (0xb409eab8) 0
-
Class QSharedMemory::QPrivateSignal
size=1 align=1
base size=0 base align=1
diff --git a/tests/auto/declarative/declarative.pro b/tests/auto/declarative/declarative.pro
index 1f442f30..19cf491e 100644
--- a/tests/auto/declarative/declarative.pro
+++ b/tests/auto/declarative/declarative.pro
@@ -1,7 +1,6 @@
TEMPLATE = subdirs
SUBDIRS += \
- examples \
parserstress \
qdeclarativecomponent \
qdeclarativecontext \
@@ -24,6 +23,7 @@ SUBDIRS += \
contains(QT_CONFIG, private_tests) {
SUBDIRS += \
+ examples \
qdeclarativeanchors \
qdeclarativeanimatedimage \
qdeclarativeanimations \
@@ -75,12 +75,12 @@ contains(QT_CONFIG, private_tests) {
qpacketprotocol
# This test requires the xmlpatterns module
- !contains(QT_CONFIG,xmlpatterns): SUBDIRS -= qdeclarativexmllistmodel
+ !qtHaveModule(xmlpatterns): SUBDIRS -= qdeclarativexmllistmodel
}
-contains(QT_CONFIG, opengl): SUBDIRS += qmlshadersplugin
+qtHaveModule(opengl): SUBDIRS += qmlshadersplugin
-!isEmpty(QT.webkit.name): SUBDIRS += qdeclarativewebview
+qtHaveModule(webkit): SUBDIRS += qdeclarativewebview
# Tests which should run in Pulse
PULSE_TESTS = $$SUBDIRS
diff --git a/tests/auto/declarative/examples/examples.pro b/tests/auto/declarative/examples/examples.pro
index 8ff6b6ef..043fa5d0 100644
--- a/tests/auto/declarative/examples/examples.pro
+++ b/tests/auto/declarative/examples/examples.pro
@@ -2,11 +2,10 @@ CONFIG += testcase
testcase.timeout = 400 # this test is slow
TARGET = tst_examples
-!contains(QT_CONFIG, webkit): DEFINES += QT_NO_WEBKIT
-!contains(QT_CONFIG, xmlpatterns): DEFINES += QT_NO_XMLPATTERNS
+!qtHaveModule(webkit): DEFINES += QT_NO_WEBKIT
+!qtHaveModule(xmlpatterns): DEFINES += QT_NO_XMLPATTERNS
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_examples.cpp
diff --git a/tests/auto/declarative/moduleqt47/moduleqt47.pro b/tests/auto/declarative/moduleqt47/moduleqt47.pro
index 93da5262..9cb96f01 100644
--- a/tests/auto/declarative/moduleqt47/moduleqt47.pro
+++ b/tests/auto/declarative/moduleqt47/moduleqt47.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_moduleqt47
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui widgets
+QT += testlib declarative gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_moduleqt47.cpp
diff --git a/tests/auto/declarative/parserstress/parserstress.pro b/tests/auto/declarative/parserstress/parserstress.pro
index e314f426..dde784e4 100644
--- a/tests/auto/declarative/parserstress/parserstress.pro
+++ b/tests/auto/declarative/parserstress/parserstress.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_parserstress
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_parserstress.cpp
diff --git a/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro b/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro
index 912676d0..470d7da4 100644
--- a/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro
+++ b/tests/auto/declarative/qdeclarativeanchors/qdeclarativeanchors.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeanchors
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets widgets-private gui gui-private core-private
+QT += testlib declarative declarative-private widgets widgets-private gui gui-private core-private
SOURCES += tst_qdeclarativeanchors.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro b/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro
index c49b305b..9fb6ac1b 100644
--- a/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro
+++ b/tests/auto/declarative/qdeclarativeanimatedimage/qdeclarativeanimatedimage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeanimatedimage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private network widgets
+QT += testlib declarative declarative-private network widgets
HEADERS += ../shared/testhttpserver.h
SOURCES += tst_qdeclarativeanimatedimage.cpp ../shared/testhttpserver.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro b/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro
index 77fc0707..d6ff8a20 100644
--- a/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro
+++ b/tests/auto/declarative/qdeclarativeanimations/qdeclarativeanimations.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeanimations
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private gui-private widgets-private
+QT += testlib declarative declarative-private core-private gui-private widgets-private
SOURCES += tst_qdeclarativeanimations.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro b/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro
index cd896bb1..09cdfea6 100644
--- a/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro
+++ b/tests/auto/declarative/qdeclarativeapplication/qdeclarativeapplication.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeapplication
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui-private widgets
+QT += testlib declarative gui-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeapplication.cpp
diff --git a/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro b/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
index 18b04f57..2bef1495 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
+++ b/tests/auto/declarative/qdeclarativebehaviors/qdeclarativebehaviors.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativebehaviors
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private widgets-private gui-private
+QT += testlib declarative declarative-private core-private widgets-private gui-private
SOURCES += tst_qdeclarativebehaviors.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro b/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
index 09446c74..eef87e3e 100644
--- a/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
+++ b/tests/auto/declarative/qdeclarativebinding/qdeclarativebinding.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativebinding
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativebinding.cpp
diff --git a/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro b/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro
index 0ed28acf..722a8bc1 100644
--- a/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro
+++ b/tests/auto/declarative/qdeclarativeborderimage/qdeclarativeborderimage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeborderimage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets network
+QT += testlib declarative declarative-private widgets network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro b/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
index 5bd9e282..953993ed 100644
--- a/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
+++ b/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativecomponent
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
QT += script network widgets
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro b/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
index e71c6327..e88d371b 100644
--- a/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
+++ b/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeconnection
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private script-private gui-private widgets-private
+QT += testlib declarative declarative-private gui core-private script-private gui-private widgets-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeconnection.cpp
diff --git a/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro b/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
index ef0ff142..2fb1ece9 100644
--- a/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
+++ b/tests/auto/declarative/qdeclarativecontext/qdeclarativecontext.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativecontext
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
SOURCES += tst_qdeclarativecontext.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro b/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro
index 70b12e8b..e3bd07e3 100644
--- a/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro
+++ b/tests/auto/declarative/qdeclarativedebug/qdeclarativedebug.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebug
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private script-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private script-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro b/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro
index c99265b5..1e2ecc35 100644
--- a/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro
+++ b/tests/auto/declarative/qdeclarativedebugclient/qdeclarativedebugclient.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebugclient
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro b/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro
index 1cde1be0..f6ee976b 100644
--- a/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro
+++ b/tests/auto/declarative/qdeclarativedebughelper/qdeclarativedebughelper.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebughelper
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private script script-private core-private
+QT += testlib network declarative declarative-private script script-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativedebughelper.cpp
diff --git a/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro b/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro
index 4f972747..1257d2c6 100644
--- a/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro
+++ b/tests/auto/declarative/qdeclarativedebugjs/tst_qdeclarativedebugjs.pro
@@ -2,8 +2,7 @@ CONFIG += testcase
testcase.timeout = 600 # this test is slow
TARGET = tst_qdeclarativedebugjs
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private network script core-private gui-private widgets-private
+QT += testlib declarative declarative-private network script core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro b/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro
index 008708be..a28aefdb 100644
--- a/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro
+++ b/tests/auto/declarative/qdeclarativedebugobservermode/tst_qdeclarativedebugobservermode.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebugobservermode
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private network script core-private gui-private widgets-private
+QT += testlib declarative declarative-private network script core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro b/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro
index e27b324e..79b24a3b 100644
--- a/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro
+++ b/tests/auto/declarative/qdeclarativedebugservice/qdeclarativedebugservice.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedebugservice
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro b/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro
index 480ac463..db3abe1f 100644
--- a/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro
+++ b/tests/auto/declarative/qdeclarativedom/qdeclarativedom.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativedom
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativedom.cpp
diff --git a/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro b/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
index 92f8d09f..0da15bf7 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
+++ b/tests/auto/declarative/qdeclarativeecmascript/qdeclarativeecmascript.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeecmascript
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script script-private network widgets core-private
+QT += testlib declarative declarative-private script script-private network widgets core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeecmascript.cpp \
diff --git a/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro b/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro
index 8004009f..0b997356 100644
--- a/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro
+++ b/tests/auto/declarative/qdeclarativeengine/qdeclarativeengine.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeengine
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative network
+QT += testlib declarative network
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeengine.cpp
diff --git a/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro b/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
index df5efe09..6d6e866e 100644
--- a/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
+++ b/tests/auto/declarative/qdeclarativeerror/qdeclarativeerror.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeerror
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
SOURCES += tst_qdeclarativeerror.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro b/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro
index bc613081..03489621 100644
--- a/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro
+++ b/tests/auto/declarative/qdeclarativeflickable/qdeclarativeflickable.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeflickable
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets script-private core-private
+QT += testlib declarative declarative-private gui widgets script-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeflickable.cpp
diff --git a/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro b/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro
index c9770933..50dfc2d0 100644
--- a/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro
+++ b/tests/auto/declarative/qdeclarativeflipable/qdeclarativeflipable.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeflipable
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets core-private script-private
+QT += testlib declarative declarative-private gui widgets core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeflipable.cpp
diff --git a/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro b/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro
index 42ea0b8a..9a56e146 100644
--- a/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro
+++ b/tests/auto/declarative/qdeclarativefocusscope/qdeclarativefocusscope.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativefocusscope
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
SOURCES += tst_qdeclarativefocusscope.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro b/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
index fc876d13..d2a5f207 100644
--- a/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
+++ b/tests/auto/declarative/qdeclarativefolderlistmodel/qdeclarativefolderlistmodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativefolderlistmodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativefolderlistmodel.cpp
diff --git a/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro b/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro
index 510cac65..4076d3ec 100644
--- a/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro
+++ b/tests/auto/declarative/qdeclarativefontloader/qdeclarativefontloader.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativefontloader
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui network
+QT += testlib declarative declarative-private gui network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro b/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro
index 63979826..e410e2f2 100644
--- a/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro
+++ b/tests/auto/declarative/qdeclarativegridview/qdeclarativegridview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativegridview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets widgets-private gui gui-private core-private script-private
+QT += testlib declarative declarative-private widgets widgets-private gui gui-private core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativegridview.cpp
diff --git a/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro b/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro
index 2db10a00..d499edb1 100644
--- a/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro
+++ b/tests/auto/declarative/qdeclarativeimage/qdeclarativeimage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeimage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets network
+QT += testlib declarative declarative-private gui widgets network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro b/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro
index f57f9603..c6a48184 100644
--- a/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro
+++ b/tests/auto/declarative/qdeclarativeimageprovider/qdeclarativeimageprovider.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeimageprovider
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
QT += network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro b/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro
index 725b6d6a..9c4b1413 100644
--- a/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro
+++ b/tests/auto/declarative/qdeclarativeimportorder/qdeclarativeimportorder.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeimportorder
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative widgets
+QT += testlib declarative widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeimportorder.cpp
diff --git a/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro b/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
index b71a6591..cd124854 100644
--- a/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
+++ b/tests/auto/declarative/qdeclarativeinfo/qdeclarativeinfo.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeinfo
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative widgets
+QT += testlib declarative widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeinfo.cpp
diff --git a/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro b/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro
index ae354f0e..12ad5bf8 100644
--- a/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro
+++ b/tests/auto/declarative/qdeclarativeinstruction/qdeclarativeinstruction.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeinstruction
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script script-private core-private
+QT += testlib declarative declarative-private script script-private core-private
SOURCES += tst_qdeclarativeinstruction.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro b/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro
index d25b77a4..9bf57ae3 100644
--- a/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro
+++ b/tests/auto/declarative/qdeclarativeitem/qdeclarativeitem.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeitem
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets-private core-private
+QT += testlib declarative declarative-private gui gui-private widgets-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeitem.cpp
diff --git a/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro b/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro
index 11a31e9f..d7c87e6b 100644
--- a/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro
+++ b/tests/auto/declarative/qdeclarativelanguage/qdeclarativelanguage.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelanguage
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script-private core-private
+QT += testlib declarative declarative-private script-private core-private
QT += script network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro b/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro
index 87416bc6..7b576d2b 100644
--- a/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro
+++ b/tests/auto/declarative/qdeclarativelayoutitem/qdeclarativelayoutitem.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelayoutitem
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativelayoutitem.cpp
diff --git a/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro b/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
index c9711b6c..25e17281 100644
--- a/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
+++ b/tests/auto/declarative/qdeclarativelistmodel/qdeclarativelistmodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelistmodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script-private core-private gui-private widgets-private
+QT += testlib declarative declarative-private script-private core-private gui-private widgets-private
QT += script
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro b/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
index 4c5dfeeb..df00a940 100644
--- a/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
+++ b/tests/auto/declarative/qdeclarativelistreference/qdeclarativelistreference.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelistreference
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative
+QT += testlib declarative
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativelistreference.cpp
diff --git a/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro b/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro
index b5911ac8..63cb92c1 100644
--- a/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro
+++ b/tests/auto/declarative/qdeclarativelistview/qdeclarativelistview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativelistview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets widgets-private gui-private core-private script-private
+QT += testlib declarative declarative-private widgets widgets-private gui-private core-private script-private
macx:CONFIG -= app_bundle
HEADERS += incrementalmodel.h
diff --git a/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro b/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro
index 81b993c1..bbac0896 100644
--- a/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro
+++ b/tests/auto/declarative/qdeclarativeloader/qdeclarativeloader.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeloader
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui network widgets
+QT += testlib declarative declarative-private gui network widgets
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro b/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro
index 256f3ebd..136de5d9 100644
--- a/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro
+++ b/tests/auto/declarative/qdeclarativemetatype/qdeclarativemetatype.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativemetatype
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets
+QT += testlib declarative declarative-private widgets
SOURCES += tst_qdeclarativemetatype.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro b/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro
index 660c90bb..10d3eaf9 100644
--- a/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro
+++ b/tests/auto/declarative/qdeclarativemousearea/qdeclarativemousearea.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativemousearea
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private widgets gui network
+QT += testlib declarative declarative-private widgets gui network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro b/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro
index 014cd170..29895c27 100644
--- a/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro
+++ b/tests/auto/declarative/qdeclarativeparticles/qdeclarativeparticles.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeparticles
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative widgets
+QT += testlib declarative widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeparticles.cpp
diff --git a/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro b/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro
index 67fc41fb..bfb8e0bc 100644
--- a/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro
+++ b/tests/auto/declarative/qdeclarativepathview/qdeclarativepathview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepathview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets core-private script-private
+QT += testlib declarative declarative-private gui widgets core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepathview.cpp
diff --git a/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro b/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro
index 19e9272c..dbef493d 100644
--- a/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro
+++ b/tests/auto/declarative/qdeclarativepincharea/qdeclarativepincharea.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepincharea
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui-private widgets
+QT += testlib declarative declarative-private gui-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepincharea.cpp
diff --git a/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro b/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
index 1cc45276..8094d9a6 100644
--- a/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
+++ b/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepixmapcache
-QT += testlib
-contains(QT_CONFIG,declarative): QT += concurrent declarative declarative-private network
+QT += testlib concurrent declarative declarative-private network
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepixmapcache.cpp
diff --git a/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro b/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro
index a6aecebf..b7c5983d 100644
--- a/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro
+++ b/tests/auto/declarative/qdeclarativepositioners/qdeclarativepositioners.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepositioners
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private gui-private widgets-private
+QT += testlib declarative declarative-private core-private gui-private widgets-private
SOURCES += tst_qdeclarativepositioners.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro b/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
index 732774b8..47d35ee9 100644
--- a/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
+++ b/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeproperty
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script-private core-private
+QT += testlib declarative declarative-private script-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeproperty.cpp
diff --git a/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro b/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro
index d9706deb..c8d9316c 100644
--- a/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro
+++ b/tests/auto/declarative/qdeclarativepropertymap/qdeclarativepropertymap.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativepropertymap
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativepropertymap.cpp
diff --git a/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro b/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
index fa372083..cbe1f2bc 100644
--- a/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
+++ b/tests/auto/declarative/qdeclarativeqt/qdeclarativeqt.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeqt
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script script-private core-private widgets
+QT += testlib declarative declarative-private script script-private core-private widgets
SOURCES += tst_qdeclarativeqt.cpp
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro b/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro
index 9cb17a57..7e233023 100644
--- a/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro
+++ b/tests/auto/declarative/qdeclarativerepeater/qdeclarativerepeater.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativerepeater
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets
+QT += testlib declarative declarative-private gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativerepeater.cpp
diff --git a/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro b/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
index 556675ee..e52edc3f 100644
--- a/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
+++ b/tests/auto/declarative/qdeclarativesmoothedanimation/qdeclarativesmoothedanimation.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativesmoothedanimation
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private script-private widgets
+QT += testlib declarative declarative-private gui core-private script-private widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativesmoothedanimation.cpp
diff --git a/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro b/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro
index da587545..c0b204a3 100644
--- a/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro
+++ b/tests/auto/declarative/qdeclarativespringanimation/qdeclarativespringanimation.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativespringanimation
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private script-private
+QT += testlib declarative declarative-private gui core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativespringanimation.cpp
diff --git a/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro b/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro
index 76730f32..f701c059 100644
--- a/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro
+++ b/tests/auto/declarative/qdeclarativestates/qdeclarativestates.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativestates
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private script-private widgets-private gui-private
+QT += testlib declarative declarative-private core-private script-private widgets-private gui-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativestates.cpp
diff --git a/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro b/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro
index edf81986..7b64cc1b 100644
--- a/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro
+++ b/tests/auto/declarative/qdeclarativestyledtext/qdeclarativestyledtext.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativestyledtext
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private
+QT += testlib declarative declarative-private
QT += network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro b/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro
index 3a08b5e0..aadd1bfe 100644
--- a/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro
+++ b/tests/auto/declarative/qdeclarativesystempalette/qdeclarativesystempalette.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativesystempalette
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets
+QT += testlib declarative declarative-private gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativesystempalette.cpp
diff --git a/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro b/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro
index 64481a08..5dd3f83e 100644
--- a/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro
+++ b/tests/auto/declarative/qdeclarativetext/qdeclarativetext.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetext
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets widgets-private core-private script-private
+QT += testlib declarative declarative-private gui gui-private widgets widgets-private core-private script-private
QT += network
macx:CONFIG -= app_bundle
diff --git a/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro b/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
index d4a5e771..0b213d70 100644
--- a/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
+++ b/tests/auto/declarative/qdeclarativetextedit/qdeclarativetextedit.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetextedit
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets widgets-private network core-private
+QT += testlib declarative declarative-private gui gui-private widgets widgets-private network core-private
macx:CONFIG -= app_bundle
include(../shared/qdeclarativedatatest.pri)
diff --git a/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro b/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro
index ab012ffb..0a2a5aef 100644
--- a/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro
+++ b/tests/auto/declarative/qdeclarativetextinput/qdeclarativetextinput.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetextinput
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui gui-private widgets widgets-private core-private
+QT += testlib declarative declarative-private gui gui-private widgets widgets-private core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativetextinput.cpp
diff --git a/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro b/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro
index 35260dca..137fa121 100644
--- a/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro
+++ b/tests/auto/declarative/qdeclarativetimer/qdeclarativetimer.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativetimer
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui core-private
+QT += testlib declarative declarative-private gui core-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativetimer.cpp
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro b/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
index 11611bea..6a3825d5 100644
--- a/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
+++ b/tests/auto/declarative/qdeclarativevaluetypes/qdeclarativevaluetypes.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativevaluetypes
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private core-private script-private
+QT += testlib declarative declarative-private core-private script-private
macx:CONFIG -= app_bundle
HEADERS += testtypes.h
diff --git a/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro b/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro
index 98824f4d..f8bbd9f9 100644
--- a/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro
+++ b/tests/auto/declarative/qdeclarativeview/qdeclarativeview.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeview
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui widgets
+QT += testlib declarative gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeview.cpp
diff --git a/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro b/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro
index 76dc50d8..9a1c3602 100644
--- a/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro
+++ b/tests/auto/declarative/qdeclarativeviewer/qdeclarativeviewer.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeviewer
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui
+QT += testlib declarative gui
macx:CONFIG -= app_bundle
include(../../../../tools/qml/qml.pri)
diff --git a/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro b/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro
index 25615747..57c4adc7 100644
--- a/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro
+++ b/tests/auto/declarative/qdeclarativevisualdatamodel/qdeclarativevisualdatamodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativevisualdatamodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private gui widgets core-private script-private
+QT += testlib declarative declarative-private gui widgets core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativevisualdatamodel.cpp
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
index 8301f7dc..1abc2433 100644
--- a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
+++ b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativeworkerscript
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script core-private script-private
+QT += testlib declarative declarative-private script core-private script-private
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeworkerscript.cpp
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro b/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
index 85679451..df8d2995 100644
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
+++ b/tests/auto/declarative/qdeclarativexmlhttprequest/qdeclarativexmlhttprequest.pro
@@ -2,8 +2,7 @@ CONFIG += testcase
testcase.timeout = 1200 # this is a slow test
TARGET = tst_qdeclarativexmlhttprequest
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative network
+QT += testlib declarative network
macx:CONFIG -= app_bundle
HEADERS += ../shared/testhttpserver.h
diff --git a/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro b/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
index 0776efca..1e72011f 100644
--- a/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
+++ b/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qdeclarativexmllistmodel
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative declarative-private script gui network core-private script-private xmlpatterns
+QT += testlib declarative declarative-private script gui network core-private script-private xmlpatterns
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativexmllistmodel.cpp
diff --git a/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro b/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro
index 7053b003..b01caedc 100644
--- a/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro
+++ b/tests/auto/declarative/qmlshadersplugin/qmlshadersplugin.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qmlshadersplugin
-QT += testlib
-QT += opengl declarative gui widgets
+QT += testlib opengl declarative gui widgets
SOURCES += tst_qmlshadersplugin.cpp
SOURCES += \
diff --git a/tests/auto/declarative/qmlvisual/qmlvisual.pro b/tests/auto/declarative/qmlvisual/qmlvisual.pro
index bf991199..0cefe427 100644
--- a/tests/auto/declarative/qmlvisual/qmlvisual.pro
+++ b/tests/auto/declarative/qmlvisual/qmlvisual.pro
@@ -2,8 +2,7 @@ CONFIG += testcase
testcase.timeout = 600 # this test is slow
TARGET = tst_qmlvisual
-QT += testlib
-contains(QT_CONFIG,declarative): QT += declarative gui widgets
+QT += testlib declarative gui widgets
macx:CONFIG -= app_bundle
SOURCES += tst_qmlvisual.cpp
diff --git a/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro b/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro
index 131c53da..f72d8731 100644
--- a/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro
+++ b/tests/auto/declarative/qpacketprotocol/qpacketprotocol.pro
@@ -1,8 +1,7 @@
CONFIG += testcase
TARGET = tst_qpacketprotocol
-QT += testlib
-contains(QT_CONFIG,declarative): QT += network declarative declarative-private core-private gui-private widgets-private
+QT += testlib network declarative declarative-private core-private gui-private widgets-private
macx:CONFIG -= app_bundle
HEADERS += ../shared/debugutil_p.h
diff --git a/tests/manual/declarative/declarative.pro b/tests/manual/declarative/declarative.pro
index 337db2f9..a7a8bfb0 100644
--- a/tests/manual/declarative/declarative.pro
+++ b/tests/manual/declarative/declarative.pro
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
-contains(QT_CONFIG, opengl): SUBDIRS += qmlshadersplugin
+qtHaveModule(opengl): SUBDIRS += qmlshadersplugin
diff --git a/tools/qml/qml.pri b/tools/qml/qml.pri
index c5f38808..09a2e50d 100644
--- a/tools/qml/qml.pri
+++ b/tools/qml/qml.pri
@@ -1,5 +1,5 @@
QT += declarative declarative-private script network sql core-private gui-private widgets-private
-contains(QT_CONFIG, opengl) {
+qtHaveModule(opengl) {
QT += opengl
DEFINES += GL_SUPPORTED
}
diff --git a/tools/qml/qml.pro b/tools/qml/qml.pro
index 669b4cea..80b1e19a 100644
--- a/tools/qml/qml.pro
+++ b/tools/qml/qml.pro
@@ -14,16 +14,16 @@ INSTALLS += target
wince* {
QT += xml
- contains(QT_CONFIG, scripttools) {
+ qtHaveModule(scripttools) {
QT += scripttools
}
contains(QT_CONFIG, phonon) {
QT += phonon
}
- contains(QT_CONFIG, xmlpatterns) {
+ qtHaveModule(xmlpatterns) {
QT += xmlpatterns
}
- contains(QT_CONFIG, webkitwidgets) {
+ qtHaveModule(webkitwidgets) {
QT += webkitwidgets
}
}