QtGui: Remove double default definition
In all the cases below, the parameters are defined in the qtestsupport_gui.h as well. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: I3311d6c23b3a811dbe20286bd4534ca1ed7cd7f3 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
14649404bc
commit
edc62595f2
@ -1192,8 +1192,8 @@ Q_GUI_EXPORT bool qt_sendShortcutOverrideEvent(QObject *o, ulong timestamp, int
|
||||
|
||||
namespace QTest
|
||||
{
|
||||
Q_GUI_EXPORT QPointingDevice * createTouchDevice(QInputDevice::DeviceType devType = QInputDevice::DeviceType::TouchScreen,
|
||||
QInputDevice::Capabilities caps = QInputDevice::Capability::Position)
|
||||
Q_GUI_EXPORT QPointingDevice * createTouchDevice(QInputDevice::DeviceType devType,
|
||||
QInputDevice::Capabilities caps)
|
||||
{
|
||||
static qint64 nextId = 0x100000000;
|
||||
QPointingDevice *ret = new QPointingDevice("test touch device"_L1, nextId++,
|
||||
@ -1206,7 +1206,7 @@ namespace QTest
|
||||
|
||||
Q_GUI_EXPORT bool qt_handleTouchEventv2(QWindow *window, const QPointingDevice *device,
|
||||
const QList<QEventPoint> &points,
|
||||
Qt::KeyboardModifiers mods = Qt::NoModifier)
|
||||
Qt::KeyboardModifiers mods)
|
||||
{
|
||||
return QWindowSystemInterface::handleTouchEvent<QWindowSystemInterface::SynchronousDelivery>(window, device,
|
||||
QWindowSystemInterfacePrivate::toNativeTouchPoints(points, window), mods);
|
||||
@ -1214,7 +1214,7 @@ Q_GUI_EXPORT bool qt_handleTouchEventv2(QWindow *window, const QPointingDevice *
|
||||
|
||||
Q_GUI_EXPORT void qt_handleTouchEvent(QWindow *window, const QPointingDevice *device,
|
||||
const QList<QEventPoint> &points,
|
||||
Qt::KeyboardModifiers mods = Qt::NoModifier)
|
||||
Qt::KeyboardModifiers mods)
|
||||
{
|
||||
qt_handleTouchEventv2(window, device, points, mods);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user