aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickevents_p_p.h
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@qt.io>2017-02-21 16:10:27 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2017-02-22 05:39:19 +0000
commit7c3baca698d5e3e6481a248a7d6c6abc41696304 (patch)
tree9e9c374d8342601f2f900705daa5d7afb3e52725 /src/quick/items/qquickevents_p_p.h
parent55cb6574d41ff6e50d2956d7c6f1dd5ac1315741 (diff)
QQuickEventPoint API changes after API review
* localize -> localizePosition * remove isValid and invalidate * remove isDraggedOverThreshold * remove Q_INVOKABLEs Change-Id: I21f788beb1e86275a9b7a1f1014998b2569001d0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickevents_p_p.h')
-rw-r--r--src/quick/items/qquickevents_p_p.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h
index ede0ebfde6..51e31bd7d7 100644
--- a/src/quick/items/qquickevents_p_p.h
+++ b/src/quick/items/qquickevents_p_p.h
@@ -289,9 +289,7 @@ public:
QQuickEventPoint(QQuickPointerEvent *parent);
void reset(Qt::TouchPointState state, const QPointF &scenePos, quint64 pointId, ulong timestamp, const QVector2D &velocity = QVector2D());
- void localize(QQuickItem *target);
-
- void invalidate();
+ void localizePosition(QQuickItem *target);
QQuickPointerEvent *pointerEvent() const;
QPointF pos() const { return m_pos; }
@@ -301,11 +299,9 @@ public:
QVector2D velocity() const { return m_velocity; }
State state() const { return m_state; }
quint64 pointId() const { return m_pointId; }
- bool isValid() const { return m_valid; }
qreal timeHeld() const { return (m_timestamp - m_pressTimestamp) / 1000.0; }
bool isAccepted() const { return m_accept; }
void setAccepted(bool accepted = true);
- bool isDraggedOverThreshold() const;
QObject *exclusiveGrabber() const;
void setExclusiveGrabber(QObject *exclusiveGrabber);
@@ -315,8 +311,8 @@ public:
QQuickPointerHandler *grabberPointerHandler() const;
void setGrabberPointerHandler(QQuickPointerHandler *exclusiveGrabber, bool exclusive = false);
- Q_INVOKABLE void cancelExclusiveGrab();
- Q_INVOKABLE void cancelPassiveGrab(QQuickPointerHandler *handler);
+ void cancelExclusiveGrab();
+ void cancelPassiveGrab(QQuickPointerHandler *handler);
bool removePassiveGrabber(QQuickPointerHandler *handler);
void cancelAllGrabs(QQuickPointerHandler *handler);
@@ -339,7 +335,6 @@ private:
ulong m_timestamp;
ulong m_pressTimestamp;
State m_state;
- bool m_valid : 1;
bool m_accept : 1;
bool m_grabberIsHandler : 1;
int m_reserved : 29;