summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qpauseanimation.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2020-12-14 11:12:30 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2021-01-26 21:47:47 +0100
commit519420641fabeeb7a372ed6157a7bc01f43b1b3b (patch)
treefa8e95f080040de2ef4e95d3d130de1e42c6f011 /src/corelib/animation/qpauseanimation.h
parentfeb20459bd795338d2247f2f97681c8bbc97b159 (diff)
Port QPauseAnimation to the new property system
Task-number: QTBUG-85520 Change-Id: I8c0ee86598f4c0f093f64b2891ee835a43964b84 Reviewed-by: Andreas Buhr <andreas.buhr@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/animation/qpauseanimation.h')
-rw-r--r--src/corelib/animation/qpauseanimation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/animation/qpauseanimation.h b/src/corelib/animation/qpauseanimation.h
index 6bdbeefdbd..1bbc52132d 100644
--- a/src/corelib/animation/qpauseanimation.h
+++ b/src/corelib/animation/qpauseanimation.h
@@ -51,7 +51,7 @@ class QPauseAnimationPrivate;
class Q_CORE_EXPORT QPauseAnimation : public QAbstractAnimation
{
Q_OBJECT
- Q_PROPERTY(int duration READ duration WRITE setDuration)
+ Q_PROPERTY(int duration READ duration WRITE setDuration BINDABLE bindableDuration)
public:
QPauseAnimation(QObject *parent = nullptr);
QPauseAnimation(int msecs, QObject *parent = nullptr);
@@ -59,6 +59,7 @@ public:
int duration() const override;
void setDuration(int msecs);
+ QBindable<int> bindableDuration();
protected:
bool event(QEvent *e) override;