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>
This commit is contained in:
Stephen Kelly 2013-03-14 13:58:19 +01:00 committed by The Qt Project
parent d0ea65b5cb
commit d87c5db10a
2 changed files with 3 additions and 3 deletions

View File

@ -13,4 +13,4 @@ add_executable(three three.cpp)
find_package(Qt5Core) find_package(Qt5Core)
qt5_use_modules(two Test) qt5_use_modules(two Test)
qt5_use_modules(three Widgets Test) qt5_use_modules(three Gui Test)

View File

@ -40,7 +40,7 @@
****************************************************************************/ ****************************************************************************/
#include <QtTest> #include <QtTest>
#include <QWidget> #include <QWindow>
class Three : public QObject class Three : public QObject
{ {
@ -48,7 +48,7 @@ class Three : public QObject
public: public:
Three(QObject *parent = 0) Three(QObject *parent = 0)
{ {
QWidget *w = new QWidget; QWindow *w = new QWindow;
w->show(); w->show();
} }
}; };