Mark missing deprecation in QTabletEvent
One constructor deprecated since 5.4, and two convenience variants of a method deprecated in 5.0. Change-Id: Ib1bba9ad529b3065461b86f80c9ec8dfc95f9ae1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
2a10a6f6d4
commit
efe1a06437
|
|
@ -2369,6 +2369,7 @@ QTabletEvent::QTabletEvent(Type type, const QPointF &pos, const QPointF &globalP
|
|||
{
|
||||
}
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 15)
|
||||
/*!
|
||||
Construct a tablet event of the given \a type.
|
||||
|
||||
|
|
@ -2412,6 +2413,7 @@ QTabletEvent::QTabletEvent(Type type, const QPointF &pos, const QPointF &globalP
|
|||
tangentialPressure, rotation, z, keyState, uniqueID, Qt::NoButton, Qt::NoButton)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\internal
|
||||
|
|
@ -2616,12 +2618,16 @@ Qt::MouseButtons QTabletEvent::buttons() const
|
|||
\fn qreal &QTabletEvent::hiResGlobalX() const
|
||||
|
||||
The high precision x position of the tablet device.
|
||||
|
||||
\obsolete use globalPosF()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn qreal &QTabletEvent::hiResGlobalY() const
|
||||
|
||||
The high precision y position of the tablet device.
|
||||
|
||||
\obsolete use globalPosF()
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -278,10 +278,15 @@ public:
|
|||
Q_ENUM(TabletDevice)
|
||||
enum PointerType { UnknownPointer, Pen, Cursor, Eraser };
|
||||
Q_ENUM(PointerType)
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 15)
|
||||
// Actually deprecated since 5.4, in docs
|
||||
QT_DEPRECATED_VERSION_X_5_15("Use the other QTabletEvent constructor")
|
||||
QTabletEvent(Type t, const QPointF &pos, const QPointF &globalPos,
|
||||
int device, int pointerType, qreal pressure, int xTilt, int yTilt,
|
||||
qreal tangentialPressure, qreal rotation, int z,
|
||||
Qt::KeyboardModifiers keyState, qint64 uniqueID); // ### remove in Qt 6
|
||||
#endif
|
||||
QTabletEvent(Type t, const QPointF &pos, const QPointF &globalPos,
|
||||
int device, int pointerType, qreal pressure, int xTilt, int yTilt,
|
||||
qreal tangentialPressure, qreal rotation, int z,
|
||||
|
|
@ -302,8 +307,12 @@ public:
|
|||
inline int y() const { return qRound(mPos.y()); }
|
||||
inline int globalX() const { return qRound(mGPos.x()); }
|
||||
inline int globalY() const { return qRound(mGPos.y()); }
|
||||
#if QT_DEPRECATED_SINCE(5, 15)
|
||||
QT_DEPRECATED_VERSION_X_5_15("use globalPosF().x()")
|
||||
inline qreal hiResGlobalX() const { return mGPos.x(); }
|
||||
QT_DEPRECATED_VERSION_X_5_15("use globalPosF().y()")
|
||||
inline qreal hiResGlobalY() const { return mGPos.y(); }
|
||||
#endif
|
||||
inline TabletDevice device() const { return TabletDevice(mDev); }
|
||||
inline PointerType pointerType() const { return PointerType(mPointerType); }
|
||||
inline qint64 uniqueId() const { return mUnique; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue