diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2013-03-14 13:58:19 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-15 10:04:30 +0100 |
commit | d87c5db10aecc0c9df45b89dae2ca13c5d7e31b5 (patch) | |
tree | 87b1404bfd8a0016f2cd0af1bafdd4541a68d032 /tests/auto/cmake | |
parent | d0ea65b5cbaa9ec6ec1aad0a60ca0a4f96659684 (diff) |
Make cmake tests not depend on QtWidgets where not needed.
Change-Id: Ib6347360d678bbe54445ebb0680ad66d77a7f3c7
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/cmake')
-rw-r--r-- | tests/auto/cmake/test_use_modules_function/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/cmake/test_use_modules_function/three.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/cmake/test_use_modules_function/CMakeLists.txt b/tests/auto/cmake/test_use_modules_function/CMakeLists.txt index 4ce01938cb..bfcdd9d1d7 100644 --- a/tests/auto/cmake/test_use_modules_function/CMakeLists.txt +++ b/tests/auto/cmake/test_use_modules_function/CMakeLists.txt @@ -13,4 +13,4 @@ add_executable(three three.cpp) find_package(Qt5Core) qt5_use_modules(two Test) -qt5_use_modules(three Widgets Test) +qt5_use_modules(three Gui Test) diff --git a/tests/auto/cmake/test_use_modules_function/three.cpp b/tests/auto/cmake/test_use_modules_function/three.cpp index c3aff71b03..42ae910981 100644 --- a/tests/auto/cmake/test_use_modules_function/three.cpp +++ b/tests/auto/cmake/test_use_modules_function/three.cpp @@ -40,7 +40,7 @@ ****************************************************************************/ #include <QtTest> -#include <QWidget> +#include <QWindow> class Three : public QObject { @@ -48,7 +48,7 @@ class Three : public QObject public: Three(QObject *parent = 0) { - QWidget *w = new QWidget; + QWindow *w = new QWindow; w->show(); } }; |