diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-27 11:53:54 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-27 14:33:39 +0000 |
commit | c96cdc8728361864f24c0f4612a9eee2215927f6 (patch) | |
tree | fd048e65b399144997c0e4c6f210f95395f88f9d /src/quicktemplates2/qquickoverlay_p_p.h | |
parent | 6060986368fcd14559141233719c767b97992590 (diff) |
QQuickOverlay: add handleMouseEvent() and handleTouchEvent()
To unify overlay event delivery from the child event filter and
the event handlers in QQuickOverlay itself.
Change-Id: I0e867baeda3a8b829fe1d1992ea8289d466afc85
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickoverlay_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickoverlay_p_p.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickoverlay_p_p.h b/src/quicktemplates2/qquickoverlay_p_p.h index f3ff0a52..fa53d52b 100644 --- a/src/quicktemplates2/qquickoverlay_p_p.h +++ b/src/quicktemplates2/qquickoverlay_p_p.h @@ -71,9 +71,12 @@ public: } bool startDrag(QEvent *event); - bool handlePress(QEvent *event); - bool handleMove(QEvent *event); - bool handleRelease(QEvent *event); + bool handlePress(QQuickItem *source, QEvent *event, QQuickPopup *target); + bool handleMove(QQuickItem *source, QEvent *event, QQuickPopup *target); + bool handleRelease(QQuickItem *source, QEvent *event, QQuickPopup *target); + + bool handleMouseEvent(QQuickItem *source, QMouseEvent *event, QQuickPopup *target = nullptr); + bool handleTouchEvent(QQuickItem *source, QTouchEvent *event, QQuickPopup *target = nullptr); void addPopup(QQuickPopup *popup); void removePopup(QQuickPopup *popup); |