diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2011-09-16 14:07:05 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-19 10:24:25 +0200 |
commit | b8d656d8787aaa5fd15d9646882a77ca818b80bd (patch) | |
tree | c638bd0714cfced7549818a86bc4d46dd085353f /tests/auto/gui/kernel | |
parent | 39a6ff81bc1d606e078a06316414829221a02024 (diff) |
Fix autotest gui/widgets dependencies
This is in preparation of removing testlib's
dependency on QtGui and QtWidgets.
Autotests that need QtWidgets api must
explicitly include it (since the types are no
longer provided by the QtGui master header).
Autotests that don't need QtGui or QtWidgets
api shouldn't link against those libraries.
Change-Id: I2808289068514fcac582808828ad4634e2631733
Reviewed-on: http://codereview.qt-project.org/5093
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto/gui/kernel')
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gui/kernel/qfileopenevent/qfileopenevent.pro b/tests/auto/gui/kernel/qfileopenevent/qfileopenevent.pro index 73724828db..45978d7b7e 100644 --- a/tests/auto/gui/kernel/qfileopenevent/qfileopenevent.pro +++ b/tests/auto/gui/kernel/qfileopenevent/qfileopenevent.pro @@ -1,3 +1,2 @@ TEMPLATE = subdirs -QT += widgets SUBDIRS = test qfileopeneventexternal diff --git a/tests/auto/gui/kernel/qfileopenevent/test/tst_qfileopenevent.cpp b/tests/auto/gui/kernel/qfileopenevent/test/tst_qfileopenevent.cpp index 69cc4ccc01..3916f420a6 100644 --- a/tests/auto/gui/kernel/qfileopenevent/test/tst_qfileopenevent.cpp +++ b/tests/auto/gui/kernel/qfileopenevent/test/tst_qfileopenevent.cpp @@ -40,7 +40,7 @@ ****************************************************************************/ #include <QtTest/QtTest> -#include <QEvent> +#include <QtGui/qevent.h> #ifdef Q_OS_SYMBIAN #include <apgcli.h> diff --git a/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp b/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp index 401f79cbc2..d76265c42a 100644 --- a/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp +++ b/tests/auto/gui/kernel/qtouchevent/tst_qtouchevent.cpp @@ -40,6 +40,7 @@ ****************************************************************************/ #include <QtGui> +#include <QtWidgets> #include <QtTest> class tst_QTouchEventWidget : public QWidget |