aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/quicktemplates2.pri
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-10-04 11:21:46 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-11-23 10:48:32 +0000
commit9812a9cc1e71b0a3d8f25c0db2457f8673e53054 (patch)
tree0a7df0e367508a64728d5994b7500c7f3f08ad06 /src/quicktemplates2/quicktemplates2.pri
parent2202d79b39ff90eed19fb8106f79d4604e47acfd (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 'src/quicktemplates2/quicktemplates2.pri')
-rw-r--r--src/quicktemplates2/quicktemplates2.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/quicktemplates2.pri b/src/quicktemplates2/quicktemplates2.pri
index 5877b3d0..5caa1bd7 100644
--- a/src/quicktemplates2/quicktemplates2.pri
+++ b/src/quicktemplates2/quicktemplates2.pri
@@ -47,7 +47,9 @@ HEADERS += \
$$PWD/qquickspinbox_p.h \
$$PWD/qquickstackview_p.h \
$$PWD/qquickstackview_p_p.h \
+ $$PWD/qquickswipe_p.h \
$$PWD/qquickswipedelegate_p.h \
+ $$PWD/qquickswipedelegate_p_p.h \
$$PWD/qquickswipeview_p.h \
$$PWD/qquickswitch_p.h \
$$PWD/qquickswitchdelegate_p.h \