diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-07-09 12:37:04 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-07-11 10:01:02 +0000 |
commit | 62bae5c556251eec5d5295c258df3fb85e3c1bcc (patch) | |
tree | a40cc524b29256b014fd812be1a8b3225b851df4 /src/quick/items/qquickevents_p_p.h | |
parent | f2e9e411cdc24683a2b201e6c00ffa6404a0717c (diff) |
Move detection of event type to separate functions
Change-Id: Id7fc9df6b57c63f9cbdbc96f3e141ee509782e59
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquickevents_p_p.h b/src/quick/items/qquickevents_p_p.h index d3ca5cadf5..c4c4daf830 100644 --- a/src/quick/items/qquickevents_p_p.h +++ b/src/quick/items/qquickevents_p_p.h @@ -426,6 +426,10 @@ protected: bool isValid() const { return m_event != nullptr; } protected: + bool isMouseEvent() const; + bool isTouchEvent() const; + bool isTabletEvent() const; + const QQuickPointerDevice *m_device; QInputEvent *m_event; // original event as received by QQuickWindow Qt::MouseButton m_button; |