diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-05-23 09:54:56 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-05-23 09:49:04 +0000 |
commit | 11d5a011e87b9137b33626032eed336b999395a0 (patch) | |
tree | 9aaeaa1046223bb357a5f1d2f55710cf95a5c0f6 /src/quicktemplates2/qquickswipedelegate_p.h | |
parent | d5dd0409f3d2e84289207a7b191ddc0cf1e79771 (diff) |
SwipeDelegate: rename exposure to swipe, active to complete
"swipe" is both shorter and easier to understand.
"complete" is easier to understand.
Task-number: QTBUG-53519
Change-Id: I87ecba4ac878f033111ee56fa618b80b227858a7
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickswipedelegate_p.h')
-rw-r--r-- | src/quicktemplates2/qquickswipedelegate_p.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/quicktemplates2/qquickswipedelegate_p.h b/src/quicktemplates2/qquickswipedelegate_p.h index fe4fd05d..b2bea3eb 100644 --- a/src/quicktemplates2/qquickswipedelegate_p.h +++ b/src/quicktemplates2/qquickswipedelegate_p.h @@ -53,17 +53,17 @@ QT_BEGIN_NAMESPACE class QQuickSwipeDelegatePrivate; -class QQuickSwipeExposure; +class QQuickSwipe; class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeDelegate : public QQuickItemDelegate { Q_OBJECT - Q_PROPERTY(QQuickSwipeExposure *exposure READ exposure CONSTANT) + Q_PROPERTY(QQuickSwipe *swipe READ swipe CONSTANT) public: explicit QQuickSwipeDelegate(QQuickItem *parent = nullptr); - QQuickSwipeExposure *exposure() const; + QQuickSwipe *swipe() const; protected: bool childMouseEventFilter(QQuickItem *child, QEvent *event) override; @@ -82,13 +82,13 @@ private: Q_DECLARE_PRIVATE(QQuickSwipeDelegate) }; -class QQuickSwipeExposurePrivate; +class QQuickSwipePrivate; -class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeExposure : public QObject +class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipe : public QObject { Q_OBJECT Q_PROPERTY(qreal position READ position NOTIFY positionChanged FINAL) - Q_PROPERTY(bool active READ isActive NOTIFY activeChanged FINAL) + Q_PROPERTY(bool complete READ isComplete NOTIFY completeChanged FINAL) Q_PROPERTY(QQmlComponent *left READ left WRITE setLeft NOTIFY leftChanged FINAL) Q_PROPERTY(QQmlComponent *behind READ behind WRITE setBehind NOTIFY behindChanged FINAL) Q_PROPERTY(QQmlComponent *right READ right WRITE setRight NOTIFY rightChanged FINAL) @@ -97,13 +97,13 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeExposure : public QObject Q_PROPERTY(QQuickItem *rightItem READ rightItem NOTIFY rightItemChanged FINAL) public: - explicit QQuickSwipeExposure(QQuickSwipeDelegate *control); + explicit QQuickSwipe(QQuickSwipeDelegate *control); qreal position() const; void setPosition(qreal position); - bool isActive() const; - void setActive(bool active); + bool isComplete() const; + void setComplete(bool complete); QQmlComponent *left() const; void setLeft(QQmlComponent *left); @@ -125,7 +125,7 @@ public: Q_SIGNALS: void positionChanged(); - void activeChanged(); + void completeChanged(); void leftChanged(); void behindChanged(); void rightChanged(); @@ -134,8 +134,8 @@ Q_SIGNALS: void rightItemChanged(); private: - Q_DISABLE_COPY(QQuickSwipeExposure) - Q_DECLARE_PRIVATE(QQuickSwipeExposure) + Q_DISABLE_COPY(QQuickSwipe) + Q_DECLARE_PRIVATE(QQuickSwipe) }; QT_END_NAMESPACE |