Clean up for some auto tests of the gui/kernel.
They are not dependent on QtWidgets. Change-Id: Icbc0b0b6f0b72537fd3058cc038a1f5c4bf2aba7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
9f86923b5c
commit
37c46fee30
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_qdrag
|
TARGET = tst_qdrag
|
||||||
QT += widgets testlib
|
QT += testlib
|
||||||
SOURCES += tst_qdrag.cpp
|
SOURCES += tst_qdrag.cpp
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,13 +40,12 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QApplication>
|
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
|
|
||||||
struct MyApplication : public QApplication
|
struct MyApplication : public QGuiApplication
|
||||||
{
|
{
|
||||||
MyApplication(int& argc, char** argv)
|
MyApplication(int& argc, char** argv)
|
||||||
: QApplication(argc, argv)
|
: QGuiApplication(argc, argv)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
bool event(QEvent * event)
|
bool event(QEvent * event)
|
||||||
@ -59,7 +58,7 @@ struct MyApplication : public QApplication
|
|||||||
file.write(QByteArray("+external"));
|
file.write(QByteArray("+external"));
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return QApplication::event(event);
|
return QGuiApplication::event(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = qfileopeneventexternal
|
TARGET = qfileopeneventexternal
|
||||||
QT += core gui widgets
|
QT += core gui
|
||||||
SOURCES += qfileopeneventexternal.cpp
|
SOURCES += qfileopeneventexternal.cpp
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_qkeysequence
|
TARGET = tst_qkeysequence
|
||||||
|
|
||||||
QT += widgets testlib
|
QT += testlib
|
||||||
QT += core-private gui-private
|
QT += core-private gui-private
|
||||||
|
|
||||||
SOURCES += tst_qkeysequence.cpp
|
SOURCES += tst_qkeysequence.cpp
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_qpalette
|
TARGET = tst_qpalette
|
||||||
QT += widgets testlib
|
QT += testlib
|
||||||
SOURCES += tst_qpalette.cpp
|
SOURCES += tst_qpalette.cpp
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
#include "qpalette.h"
|
#include "qpalette.h"
|
||||||
#include <qapplication.h>
|
|
||||||
|
|
||||||
class tst_QPalette : public QObject
|
class tst_QPalette : public QObject
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user