diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-26 13:50:54 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-26 15:53:39 +0000 |
commit | 3326439361d3ec4e60bcdb189e6bfb75189136ca (patch) | |
tree | 445d502e9edea0b686164b2207fed8310f943a14 /src/quicktemplates2/qquickdrawer_p_p.h | |
parent | cf67bb976e082105994ff00a2616129833edb857 (diff) |
Revise the press/move/release handlers
Otherwise the handlers are not able to control whether presses, moves
and releases should be blocked or not.
a) outside a non-modal popup,
b) to popup children/content, or
b) outside a modal popups's background dimming
Change-Id: I637295fc3122cdcddb7727ec3939ec6a68a3cf98
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdrawer_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickdrawer_p_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickdrawer_p_p.h b/src/quicktemplates2/qquickdrawer_p_p.h index 4c577982..bcfd7206 100644 --- a/src/quicktemplates2/qquickdrawer_p_p.h +++ b/src/quicktemplates2/qquickdrawer_p_p.h @@ -73,9 +73,9 @@ public: bool startDrag(QEvent *event); bool grabMouse(QQuickItem *item, QMouseEvent *event); - void handlePress(const QPointF &point, ulong timestamp) override; - void handleMove(const QPointF &point, ulong timestamp) override; - void handleRelease(const QPointF &point, ulong timestamp) override; + bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp) override; + bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp) override; + bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp) override; void handleUngrab() override; bool prepareEnterTransition() override; |