32 Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
33 Q_PROPERTY(
bool complete READ isComplete NOTIFY completeChanged FINAL)
34 Q_PROPERTY(QQmlComponent *left READ left WRITE setLeft NOTIFY leftChanged FINAL)
35 Q_PROPERTY(QQmlComponent *behind READ behind WRITE setBehind NOTIFY behindChanged FINAL)
36 Q_PROPERTY(QQmlComponent *right READ right WRITE setRight NOTIFY rightChanged FINAL)
37 Q_PROPERTY(QQuickItem *leftItem READ leftItem NOTIFY leftItemChanged FINAL)
38 Q_PROPERTY(QQuickItem *behindItem READ behindItem NOTIFY behindItemChanged FINAL)
39 Q_PROPERTY(QQuickItem *rightItem READ rightItem NOTIFY rightItemChanged FINAL)
41 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL)
42 Q_PROPERTY(QQuickTransition *transition READ transition WRITE setTransition NOTIFY transitionChanged FINAL)
44 QML_ADDED_IN_VERSION(2, 0)
47 explicit QQuickSwipe(QQuickSwipeDelegate *control);
49 qreal position()
const;
50 void setPosition(qreal position);
52 bool isComplete()
const;
53 void setComplete(
bool complete);
55 QQmlComponent *left()
const;
56 void setLeft(QQmlComponent *left);
58 QQmlComponent *behind()
const;
59 void setBehind(QQmlComponent *behind);
61 QQmlComponent *right()
const;
62 void setRight(QQmlComponent *right);
64 QQuickItem *leftItem()
const;
65 void setLeftItem(QQuickItem *item);
67 QQuickItem *behindItem()
const;
68 void setBehindItem(QQuickItem *item);
70 QQuickItem *rightItem()
const;
71 void setRightItem(QQuickItem *item);
74 Q_REVISION(2, 1) Q_INVOKABLE
void close();
77 bool isEnabled()
const;
78 void setEnabled(
bool enabled);
80 QQuickTransition *transition()
const;
81 void setTransition(QQuickTransition *transition);
83 Q_REVISION(2, 2) Q_INVOKABLE
void open(QQuickSwipeDelegate::Side side);
86 void positionChanged();
87 void completeChanged();
91 void leftItemChanged();
92 void behindItemChanged();
93 void rightItemChanged();
99 void enabledChanged();
100 void transitionChanged();
103 Q_DISABLE_COPY(QQuickSwipe)
104 Q_DECLARE_PRIVATE(QQuickSwipe)