tst_qquickwindow: make use of new QTest::createTouchDevice function

So gui-private API isn't necessary anymore.
Same as change 94324bd93f

Task-number: QTBUG-44030
Change-Id: I780cc1eedf9285336b96219a1fb1cd4016512701
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
Shawn Rutledge 2016-07-13 14:42:47 +02:00
parent a25f0ed5d2
commit cfe4e8b8dc
2 changed files with 4 additions and 13 deletions

View File

@ -7,7 +7,7 @@ include(../shared/util.pri)
macx:CONFIG -= app_bundle
QT += core-private gui-private qml-private quick-private testlib
QT += core-private qml-private quick-private testlib
TESTDATA = data/*

View File

@ -40,7 +40,6 @@
#include "../shared/visualtestutil.h"
#include "../shared/viewtestutil.h"
#include <QSignalSpy>
#include <qpa/qwindowsysteminterface.h>
#include <private/qquickwindow_p.h>
#include <private/qguiapplication_p.h>
#include <QRunnable>
@ -275,22 +274,14 @@ class tst_qquickwindow : public QQmlDataTest
Q_OBJECT
public:
tst_qquickwindow()
: touchDevice(QTest::createTouchDevice())
, touchDeviceWithVelocity(QTest::createTouchDevice())
{
QQuickWindow::setDefaultAlphaBuffer(true);
touchDeviceWithVelocity->setCapabilities(QTouchDevice::Position | QTouchDevice::Velocity);
}
private slots:
void initTestCase()
{
QQmlDataTest::initTestCase();
touchDevice = new QTouchDevice;
touchDevice->setType(QTouchDevice::TouchScreen);
QWindowSystemInterface::registerTouchDevice(touchDevice);
touchDeviceWithVelocity = new QTouchDevice;
touchDeviceWithVelocity->setType(QTouchDevice::TouchScreen);
touchDeviceWithVelocity->setCapabilities(QTouchDevice::Position | QTouchDevice::Velocity);
QWindowSystemInterface::registerTouchDevice(touchDeviceWithVelocity);
}
void cleanup();
#ifndef QT_NO_OPENGL
void openglContextCreatedSignal();