summaryrefslogtreecommitdiffstats
path: root/tests/manual/qtouchevent
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-03-21 15:19:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-22 19:52:26 +0100
commit37842c2fdb10b8802cae7ebeead7d4e356251053 (patch)
tree01b805e009ecee542cf0c391c2a484315ce6c4a9 /tests/manual/qtouchevent
parent4e07286a30fb58321f46a9fd0e0033f06bf9eb4d (diff)
Compile most manual tests with Qt 4.
Replace <QtWidgets> includes by class includes, remove tests that do not compile. Change-Id: I52837e8c567dc8ac365c7d43c37beb9a368f6f72 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/manual/qtouchevent')
-rw-r--r--tests/manual/qtouchevent/main.cpp3
-rw-r--r--tests/manual/qtouchevent/qtouchevent.pro3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/manual/qtouchevent/main.cpp b/tests/manual/qtouchevent/main.cpp
index e0bd9ad063..7c1ed81c37 100644
--- a/tests/manual/qtouchevent/main.cpp
+++ b/tests/manual/qtouchevent/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtWidgets>
+#include <QApplication>
#include <QtTest>
#include "ui_form.h"
@@ -55,6 +55,7 @@ public:
{
setAttribute(Qt::WA_QuitOnClose, false);
setupUi(this);
+ setWindowTitle(QT_VERSION_STR);
}
void closeEvent(QCloseEvent *event)
diff --git a/tests/manual/qtouchevent/qtouchevent.pro b/tests/manual/qtouchevent/qtouchevent.pro
index aa4339f693..6a1ca85335 100644
--- a/tests/manual/qtouchevent/qtouchevent.pro
+++ b/tests/manual/qtouchevent/qtouchevent.pro
@@ -1,4 +1,5 @@
-QT += widgets testlib
+QT += testlib
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
SOURCES = main.cpp \
touchwidget.cpp
FORMS += form.ui