diff options
Diffstat (limited to 'tests/manual/qtouchevent')
-rw-r--r-- | tests/manual/qtouchevent/main.cpp | 3 | ||||
-rw-r--r-- | tests/manual/qtouchevent/qtouchevent.pro | 3 |
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 |