diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-10-04 11:21:46 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2016-11-23 10:48:32 +0000 |
commit | 9812a9cc1e71b0a3d8f25c0db2457f8673e53054 (patch) | |
tree | 0a7df0e367508a64728d5994b7500c7f3f08ad06 /LICENSE.LGPLv3 | |
parent | 2202d79b39ff90eed19fb8106f79d4604e47acfd (diff) |
SwipeDelegate: don't emit clicked when released outside
If there are no delegates and hence the mouse hasn't been grabbed, we
should clear the pressed state when the mouse is dragged outside the
control. We can do so by falling back to the event handling of the
base class (QQuickItemDelegate) when we have no delegates.
This also ensures that the canceled() signal is emitted.
A similar thing is done for controls with delegates, except that only
the vertical position of the mouse is checked, as we still want to
initiate swipes horizontally.
Change-Id: I7738f5b9e8e8b6ce4a733008fa4ff73596e854ea
Task-number: QTBUG-56312
Task-number: QTBUG-57285
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'LICENSE.LGPLv3')
0 files changed, 0 insertions, 0 deletions