diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-25 16:41:49 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-25 16:41:49 +0100 |
commit | a5061675138193a1306e3c154d3b91cb693de810 (patch) | |
tree | 6ab3ceece060360fc791fb227a56708999c8d325 /framework/actions/action.cpp | |
parent | fed67ae13d4b9c109449f6077cea328913a8548e (diff) | |
download | kube-a5061675138193a1306e3c154d3b91cb693de810.tar.gz kube-a5061675138193a1306e3c154d3b91cb693de810.zip |
Ignore the properties of base classes.
QObject::objectName
Diffstat (limited to 'framework/actions/action.cpp')
-rw-r--r-- | framework/actions/action.cpp | 2 |
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) | |||
46 | void Action::setContext(Context *context) | 46 | void 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") { |