add back the device-less QNativeGestureEvent (deprecated)
It was an oversight in 83729ad7a1
that this constructor is still in use in other modules. And in fact
we cannot remove public constructors without deprecating them first.
Task-number: QTBUG-63355
Change-Id: I64dbf9bc54c0bf6be7157f047b548d3b2c5bc2ed
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
bcdd07ceb8
commit
ce019efb5c
@ -2757,6 +2757,18 @@ Qt::MouseButtons QTabletEvent::buttons() const
|
||||
\sa Qt::NativeGestureType, QGestureEvent
|
||||
*/
|
||||
|
||||
/*!
|
||||
\deprecated The QTouchDevice parameter is now required
|
||||
*/
|
||||
#if QT_DEPRECATED_SINCE(5, 10)
|
||||
QNativeGestureEvent::QNativeGestureEvent(Qt::NativeGestureType type, const QPointF &localPos, const QPointF &windowPos,
|
||||
const QPointF &screenPos, qreal realValue, ulong sequenceId, quint64 intValue)
|
||||
: QInputEvent(QEvent::NativeGesture), mGestureType(type), mTouchDeviceId(255),
|
||||
mLocalPos(localPos), mWindowPos(windowPos), mScreenPos(screenPos), mRealValue(realValue),
|
||||
mSequenceId(sequenceId), mIntValue(intValue)
|
||||
{ }
|
||||
#endif
|
||||
|
||||
/*!
|
||||
Constructs a native gesture event of type \a type.
|
||||
|
||||
|
@ -301,6 +301,10 @@ protected:
|
||||
class Q_GUI_EXPORT QNativeGestureEvent : public QInputEvent
|
||||
{
|
||||
public:
|
||||
#if QT_DEPRECATED_SINCE(5, 10)
|
||||
QT_DEPRECATED QNativeGestureEvent(Qt::NativeGestureType type, const QPointF &localPos, const QPointF &windowPos,
|
||||
const QPointF &screenPos, qreal value, ulong sequenceId, quint64 intArgument);
|
||||
#endif
|
||||
QNativeGestureEvent(Qt::NativeGestureType type, const QTouchDevice *dev, const QPointF &localPos, const QPointF &windowPos,
|
||||
const QPointF &screenPos, qreal value, ulong sequenceId, quint64 intArgument);
|
||||
Qt::NativeGestureType gestureType() const { return mGestureType; }
|
||||
|
Loading…
Reference in New Issue
Block a user