diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-01-25 11:57:38 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-01-27 12:34:57 +0000 |
commit | 78a032e2328dddf0f60c0fe3063047888b92cc2a (patch) | |
tree | 0d7083f647cc585097875b589ddaa436b01656c3 /src/animation/backend/clipanimator_p.h | |
parent | 5bd08543817328b5155201890031c4655f7d3b73 (diff) |
Add job to find all clip animators that should be running
Change-Id: I198a5d0d198c56756e4ac045527e02969b4dcecb
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation/backend/clipanimator_p.h')
-rw-r--r-- | src/animation/backend/clipanimator_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/animation/backend/clipanimator_p.h b/src/animation/backend/clipanimator_p.h index 5dec684e5..a72e9c2f8 100644 --- a/src/animation/backend/clipanimator_p.h +++ b/src/animation/backend/clipanimator_p.h @@ -64,7 +64,7 @@ public: ClipAnimator(); void cleanup(); - void setClipId(Qt3DCore::QNodeId clipId) { m_clipId = clipId; } + void setClipId(Qt3DCore::QNodeId clipId); Qt3DCore::QNodeId clipId() const { return m_clipId; } void setMapperId(Qt3DCore::QNodeId mapperId); Qt3DCore::QNodeId mapperId() const { return m_mapperId; } @@ -76,6 +76,9 @@ public: void setHandler(Handler *handler) { m_handler = handler; } + // Called by jobs + bool canRun() const { return !m_clipId.isNull() && !m_mapperId.isNull() && m_running; } + private: void initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change) Q_DECL_FINAL; |