aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-22 15:26:42 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-11-23 21:03:37 +0100
commit4cb23c7edbb66f80e6749efbdec7154bf1637d35 (patch)
treed60b5e1920fd914f91a30db8e5e052ff99a0f612 /sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
parent2b14cba81265bbeb31b35dc4e04ccd3f6e29c4ee (diff)
shiboken6: Parse the notify specification from Q_PROPERTY
To be used for documentation purposes. Task-number: PYSIDE-1106 Task-number: PYSIDE-1019 Pick-to: 6.4 Change-Id: I833193be0007dbdba2e3fde75c64dfc2a85a4ef7 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
index aa57c1b06..4eff0ee62 100644
--- a/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
@@ -1384,6 +1384,11 @@ void AbstractMetaBuilderPrivate::traverseFunctions(ScopeModelItem scopeItem,
metaFunction->setPropertySpecIndex(propertyFunction.index);
}
break;
+ case AbstractMetaClass::PropertyFunction::Notify:
+ if (metaFunction->isSignal()) {
+ *metaFunction += AbstractMetaFunction::PropertyNotify;
+ metaFunction->setPropertySpecIndex(propertyFunction.index);
+ }
}
}