summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qlogicaldevice.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-04-29 08:41:00 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-05-01 12:18:05 +0000
commit66eb504af1dd474b87f030513313ee2a1a763780 (patch)
treef80826f407588935c6a6ace68f119c63ef57e56d /src/input/frontend/qlogicaldevice.cpp
parentaf1cf2391f45f7f09a7f9443c29f709ff29a4743 (diff)
QNodeAddedChange: contains a QNodeIdTypePair
That allows to know what type of node was added Change-Id: I89829794655fac81bdc9840ae83473640b0a384a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qlogicaldevice.cpp')
-rw-r--r--src/input/frontend/qlogicaldevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/frontend/qlogicaldevice.cpp b/src/input/frontend/qlogicaldevice.cpp
index 9737b4afa..7c8b5348d 100644
--- a/src/input/frontend/qlogicaldevice.cpp
+++ b/src/input/frontend/qlogicaldevice.cpp
@@ -159,7 +159,7 @@ void QLogicalDevice::addAction(QAction *action)
action->setParent(this);
if (d->m_changeArbiter != Q_NULLPTR) {
- const auto change = Qt3DCore::QNodeAddedPropertyChangePtr::create(id(), action->id());
+ const auto change = Qt3DCore::QNodeAddedPropertyChangePtr::create(id(), action);
change->setPropertyName("action");
d->notifyObservers(change);
}
@@ -213,7 +213,7 @@ void QLogicalDevice::addAxis(QAxis *axis)
axis->setParent(this);
if (d->m_changeArbiter != Q_NULLPTR) {
- const auto change = Qt3DCore::QNodeAddedPropertyChangePtr::create(id(), axis->id());
+ const auto change = Qt3DCore::QNodeAddedPropertyChangePtr::create(id(), axis);
change->setPropertyName("axis");
d->notifyObservers(change);
}