summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qcomponent.cpp
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2014-10-15 08:07:03 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-10-15 19:37:44 +0200
commita4b9ce44ae244104a941981405742ee42d53ebe0 (patch)
treecd66ef6dd859f1faf26874af62ab65830ce35a09 /src/core/nodes/qcomponent.cpp
parent8fe8aa479905b486959d956fb5637d825b8f3b4c (diff)
Automate the NodeUpdated notifications
Now, each time a signal known to be the notification of a property change is emitted, we notify the observers automatically. Properties for which no NOTIFY has been provided are ignored. This change also allowed to drop quite some redundant code in QNode subclasses. Change-Id: Ib4fbeb8311148a6b8789f19ebe437fc7d413a599 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/nodes/qcomponent.cpp')
-rw-r--r--src/core/nodes/qcomponent.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/nodes/qcomponent.cpp b/src/core/nodes/qcomponent.cpp
index 80fa23e66..608f2aa3b 100644
--- a/src/core/nodes/qcomponent.cpp
+++ b/src/core/nodes/qcomponent.cpp
@@ -71,13 +71,6 @@ void QComponent::setShareable(bool shareable)
if (d->m_shareable != shareable) {
d->m_shareable = shareable;
emit shareableChanged();
-
- if (d->m_changeArbiter != Q_NULLPTR) {
- QScenePropertyChangePtr propertyChange(new QScenePropertyChange(NodeUpdated, this));
- propertyChange->setPropertyName(QByteArrayLiteral("shareable"));
- propertyChange->setValue(d->m_shareable);
- d->notifyObservers(propertyChange);
- }
}
}