summaryrefslogtreecommitdiffstats
path: root/src/animation/frontend/qanimationcliploader.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-04-12 14:17:39 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-04-13 07:21:13 +0000
commitf33332a83ac3a2465a7f217d6cd40fcf81d3c179 (patch)
treebef7eaafebfbd9c239c78d66db1fe9790da3c58c /src/animation/frontend/qanimationcliploader.h
parenta7380d3e01656cd5bd191340d853d5a040f6e707 (diff)
Add convenience ctor to QAnimationClipLoader
Typically all we do is create and set source. Allow this to be a one-liner. Change-Id: Ie754bd3e0f70eb3e486b0b07be27fb458cd65093 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/animation/frontend/qanimationcliploader.h')
-rw-r--r--src/animation/frontend/qanimationcliploader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/animation/frontend/qanimationcliploader.h b/src/animation/frontend/qanimationcliploader.h
index a21671b62..20f0f14da 100644
--- a/src/animation/frontend/qanimationcliploader.h
+++ b/src/animation/frontend/qanimationcliploader.h
@@ -55,6 +55,8 @@ class QT3DANIMATIONSHARED_EXPORT QAnimationClipLoader : public QAbstractAnimatio
public:
explicit QAnimationClipLoader(Qt3DCore::QNode *parent = nullptr);
+ explicit QAnimationClipLoader(const QUrl &source,
+ Qt3DCore::QNode *parent = nullptr);
~QAnimationClipLoader();
enum Status {