summaryrefslogtreecommitdiff
path: root/tests/shared
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-17 16:58:11 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-17 19:45:05 +0200
commit771e2babf6d201f7f6a11c93a59c152896dad8db (patch)
tree5b83b8546f624f2b7c77f04020cc5309362bfed9 /tests/shared
parent0bf5b80baee78f9fc7145304821481556ccba78b (diff)
downloadqtquickcontrols-771e2babf6d201f7f6a11c93a59c152896dad8db.tar.gz
Remove widget dependency on touch platforms
We don't want native styling on touch enabled devices and there is no reason to link against widgets there. Change-Id: I70116a0a94227cb58ae25980b97c4177da75a3c8 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'tests/shared')
-rw-r--r--tests/shared/qt_quick_controls_quicktest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shared/qt_quick_controls_quicktest.h b/tests/shared/qt_quick_controls_quicktest.h
index 8bcd0d47..42d7e942 100644
--- a/tests/shared/qt_quick_controls_quicktest.h
+++ b/tests/shared/qt_quick_controls_quicktest.h
@@ -44,7 +44,7 @@
#include <QtQuickTest/quicktestglobal.h>
-#ifndef QT_NO_WIDGETS
+#ifdef QT_WIDGETS_LIB
#include <QtWidgets/QApplication>
#else
#include <QtGui/QGuiApplication>
@@ -58,7 +58,7 @@ QT_BEGIN_NAMESPACE
#define QT_QUICK_CONTROLS_TEST_MAIN_VAR 0
#endif
-#ifndef QT_NO_WIDGETS
+#ifdef QT_WIDGETS_LIB
#define Application QApplication
#else
#define Application QGuiApplication