summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-25 16:41:49 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-25 16:41:49 +0100
commita5061675138193a1306e3c154d3b91cb693de810 (patch)
tree6ab3ceece060360fc791fb227a56708999c8d325 /framework
parentfed67ae13d4b9c109449f6077cea328913a8548e (diff)
downloadkube-a5061675138193a1306e3c154d3b91cb693de810.tar.gz
kube-a5061675138193a1306e3c154d3b91cb693de810.zip
Ignore the properties of base classes.
QObject::objectName
Diffstat (limited to 'framework')
-rw-r--r--framework/actions/action.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/actions/action.cpp b/framework/actions/action.cpp
index 096c93cc..e6ba2daf 100644
--- a/framework/actions/action.cpp
+++ b/framework/actions/action.cpp
@@ -46,7 +46,7 @@ Action::Action(const QByteArray &actionId, Context &context, QObject *parent)
46void Action::setContext(Context *context) 46void Action::setContext(Context *context)
47{ 47{
48 //Get notified when any property changes 48 //Get notified when any property changes
49 for (int i = 0; i < context->metaObject()->propertyCount(); i++) { 49 for (int i = context->metaObject()->propertyOffset(); i < context->metaObject()->propertyCount(); i++) {
50 auto property = context->metaObject()->property(i) ; 50 auto property = context->metaObject()->property(i) ;
51 // qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name(); 51 // qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name();
52 if (QString(property.name()) != "objectName") { 52 if (QString(property.name()) != "objectName") {