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:
parent
d0ea65b5cb
commit
d87c5db10a
@ -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)
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user