aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswipedelegate_p.h
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-07-11 10:54:31 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-13 20:12:02 +0000
commit546544b347be496a484101b1b7c05e3c6bdbc9e9 (patch)
tree7bd807eeaa235ba14b64d164702326aba0549b9d /src/quicktemplates2/qquickswipedelegate_p.h
parentaa823b2961f90a3fa459a220b3eab51c227b110a (diff)
SwipeDelegate: add swipe.close()
This allows users to close the swipe after an action has been triggered, for example. [ChangeLog][SwipeDelegate] Added swipe.close() for setting swipe.position to 0. Change-Id: Ib12a6592ac1ba46baafd88a41ea8f297599c7bbc Task-number: QTBUG-54651 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickswipedelegate_p.h')
-rw-r--r--src/quicktemplates2/qquickswipedelegate_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickswipedelegate_p.h b/src/quicktemplates2/qquickswipedelegate_p.h
index b2bea3eb..afd195ea 100644
--- a/src/quicktemplates2/qquickswipedelegate_p.h
+++ b/src/quicktemplates2/qquickswipedelegate_p.h
@@ -123,6 +123,8 @@ public:
QQuickItem *rightItem() const;
void setRightItem(QQuickItem *item);
+ Q_REVISION(1) Q_INVOKABLE void close();
+
Q_SIGNALS:
void positionChanged();
void completeChanged();