diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-08-23 15:01:55 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-08-31 09:30:07 +0000 |
commit | c64f167fbaa1e2613d9533c8ab596120458c85fb (patch) | |
tree | 67693a0b36f67b88ceb99dd6d06d773d2e5f068f /src/animation/frontend/qchannelmapping.cpp | |
parent | 331f6f7e4b2d13d9a137b10d5a980257f4f054ec (diff) |
Introduce QAbstractChannelMapping
This will act as the base class for the various specific use cases:
* QChannelMapping for mapping to ordinary QNode properties
* QSkeletonMapping for mapping to indexed joints in a skeleton
* QCallbackMapping for calling a callback in response to an animation
The last two of these are yet to be added. The final one is
currently part of QChannelMapping but will be separated from it.
All 3 types can map to the same type ChannelMapping backend node.
Change-Id: Iaeeba0919628d8da4479b8569d3b10d9b5faccf4
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation/frontend/qchannelmapping.cpp')
-rw-r--r-- | src/animation/frontend/qchannelmapping.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/animation/frontend/qchannelmapping.cpp b/src/animation/frontend/qchannelmapping.cpp index ec18332c7..b97961edc 100644 --- a/src/animation/frontend/qchannelmapping.cpp +++ b/src/animation/frontend/qchannelmapping.cpp @@ -47,7 +47,7 @@ QT_BEGIN_NAMESPACE namespace Qt3DAnimation { QChannelMappingPrivate::QChannelMappingPrivate() - : Qt3DCore::QNodePrivate() + : QAbstractChannelMappingPrivate() , m_channelName() , m_target(nullptr) , m_property() @@ -119,12 +119,12 @@ void QChannelMappingPrivate::updatePropertyNameAndType() */ QChannelMapping::QChannelMapping(Qt3DCore::QNode *parent) - : Qt3DCore::QNode(*new QChannelMappingPrivate, parent) + : QAbstractChannelMapping(*new QChannelMappingPrivate, parent) { } QChannelMapping::QChannelMapping(QChannelMappingPrivate &dd, Qt3DCore::QNode *parent) - : Qt3DCore::QNode(dd, parent) + : QAbstractChannelMapping(dd, parent) { } |