diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-04-07 20:56:52 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-04-11 08:00:12 +0000 |
commit | 19a8c6b46cb538ee4e628cbe50f6fa549094d7eb (patch) | |
tree | 82d1c93dabd7553d6088dc85c157bb4bf5067d3f /src/input/frontend/qphysicaldevicecreatedchange.cpp | |
parent | fe154ade6d0329e4972f1d6af95720cf2dd7c01a (diff) |
Ensure that QNodeCreatedChange objects have subjectId set correctly
This ensures that subclasses of QNodeCreatedChangeBase always pass in
the QNode pointer that allows to correctly set the subjectId to be the
id() of the QNode.
With this change the materials-cpp example is now able to run using the
new node creation mechanism.
Change-Id: I0a5ce4f3e93b485adfdb7534c15493946cfa00c6
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/input/frontend/qphysicaldevicecreatedchange.cpp')
-rw-r--r-- | src/input/frontend/qphysicaldevicecreatedchange.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input/frontend/qphysicaldevicecreatedchange.cpp b/src/input/frontend/qphysicaldevicecreatedchange.cpp index ff976c1b8..39e663fff 100644 --- a/src/input/frontend/qphysicaldevicecreatedchange.cpp +++ b/src/input/frontend/qphysicaldevicecreatedchange.cpp @@ -52,9 +52,8 @@ QPhysicalDeviceCreatedChangeBasePrivate::QPhysicalDeviceCreatedChangeBasePrivate } QPhysicalDeviceCreatedChangeBase::QPhysicalDeviceCreatedChangeBase(const QAbstractPhysicalDevice *device, Priority priority) - : Qt3DCore::QNodeCreatedChangeBase(*new QPhysicalDeviceCreatedChangeBasePrivate(device)) + : Qt3DCore::QNodeCreatedChangeBase(*new QPhysicalDeviceCreatedChangeBasePrivate(device), device, priority) { - d_func()->m_priority = priority; } Qt3DCore::QNodeIdVector QPhysicalDeviceCreatedChangeBase::axisSettingIds() const |