summaryrefslogtreecommitdiffstats
path: root/src/animation/frontend/qabstractclipanimator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation/frontend/qabstractclipanimator.h')
-rw-r--r--src/animation/frontend/qabstractclipanimator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/animation/frontend/qabstractclipanimator.h b/src/animation/frontend/qabstractclipanimator.h
index bd38fd68b..8fdb114f3 100644
--- a/src/animation/frontend/qabstractclipanimator.h
+++ b/src/animation/frontend/qabstractclipanimator.h
@@ -49,6 +49,7 @@ namespace Qt3DAnimation {
class QAnimationClip;
class QChannelMapper;
+class QClock;
class QAbstractClipAnimatorPrivate;
class QT3DANIMATIONSHARED_EXPORT QAbstractClipAnimator : public Qt3DCore::QComponent
@@ -57,6 +58,7 @@ class QT3DANIMATIONSHARED_EXPORT QAbstractClipAnimator : public Qt3DCore::QCompo
Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged)
Q_PROPERTY(int loops READ loopCount WRITE setLoopCount NOTIFY loopCountChanged)
Q_PROPERTY(Qt3DAnimation::QChannelMapper *channelMapper READ channelMapper WRITE setChannelMapper NOTIFY channelMapperChanged)
+ Q_PROPERTY(Qt3DAnimation::QClock *clock READ clock WRITE setClock NOTIFY clockChanged)
public:
enum Loops { Infinite = -1 };
@@ -67,11 +69,13 @@ public:
bool isRunning() const;
Qt3DAnimation::QChannelMapper *channelMapper() const;
int loopCount() const;
+ Qt3DAnimation::QClock *clock() const;
public Q_SLOTS:
void setRunning(bool running);
void setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper);
void setLoopCount(int loops);
+ void setClock(Qt3DAnimation::QClock *clock);
void start();
void stop();
@@ -80,6 +84,7 @@ Q_SIGNALS:
void runningChanged(bool running);
void channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper);
void loopCountChanged(int loops);
+ void clockChanged(Qt3DAnimation::QClock *clock);
protected:
explicit QAbstractClipAnimator(Qt3DCore::QNode *parent = nullptr);