aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpysideqml/pysideqml.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-02-08 09:44:11 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-02-09 13:38:52 +0100
commit5fccdc85bd3f84506f99cddb71feb2e0a0cccb57 (patch)
treeb33d280125f54e96b49f135cd7d4bda2ae8eb54d /sources/pyside6/libpysideqml/pysideqml.cpp
parent383e0bfc56e39d5f097e7957f986eb60e8052831 (diff)
Add the @QmlNamedElement decorator
Add the decorator and split the registration functions in order to be able to pass a different type name. [ChangeLog][PySide6] The @QmlNamedElement decorator has been added. Task-number: PYSIDE-1709 Change-Id: I081cd33313d7b9c19cb6403ee56ac9d8b1d9e606 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqml.cpp')
-rw-r--r--sources/pyside6/libpysideqml/pysideqml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqml.cpp b/sources/pyside6/libpysideqml/pysideqml.cpp
index 7acab42c3..c6bcad549 100644
--- a/sources/pyside6/libpysideqml/pysideqml.cpp
+++ b/sources/pyside6/libpysideqml/pysideqml.cpp
@@ -39,7 +39,7 @@
#include "pysideqml.h"
#include "pysideqmllistproperty_p.h"
-#include "pysideqmluncreatable.h"
+#include "pysideqmlnamedelement_p.h"
#include "pysideqmluncreatable.h"
#include "pysideqmlmetacallerror_p.h"
@@ -51,6 +51,7 @@ namespace PySide::Qml
void init(PyObject *module)
{
initQtQmlListProperty(module);
+ initQmlNamedElement(module);
initQmlUncreatable(module);
PySide::SignalManager::setQmlMetaCallErrorHandler(PySide::Qml::qmlMetaCallErrorHandler);
}