From a5061675138193a1306e3c154d3b91cb693de810 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 25 Feb 2016 16:41:49 +0100 Subject: Ignore the properties of base classes. QObject::objectName --- framework/actions/action.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') 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) void Action::setContext(Context *context) { //Get notified when any property changes - for (int i = 0; i < context->metaObject()->propertyCount(); i++) { + for (int i = context->metaObject()->propertyOffset(); i < context->metaObject()->propertyCount(); i++) { auto property = context->metaObject()->property(i) ; // qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name(); if (QString(property.name()) != "objectName") { -- cgit v1.2.3