diff options
Diffstat (limited to 'sources/pyside2/PySide2/QtQml')
-rw-r--r-- | sources/pyside2/PySide2/QtQml/CMakeLists.txt | 1 | ||||
-rw-r--r-- | sources/pyside2/PySide2/QtQml/typesystem_qml.xml | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtQml/CMakeLists.txt b/sources/pyside2/PySide2/QtQml/CMakeLists.txt index c584c3371..cfd1b6857 100644 --- a/sources/pyside2/PySide2/QtQml/CMakeLists.txt +++ b/sources/pyside2/PySide2/QtQml/CMakeLists.txt @@ -30,6 +30,7 @@ ${QtQml_GEN_DIR}/qqmlpropertymap_wrapper.cpp ${QtQml_GEN_DIR}/qqmlpropertyvaluesource_wrapper.cpp ${QtQml_GEN_DIR}/qqmlscriptstring_wrapper.cpp ${QtQml_GEN_DIR}/qqmlnetworkaccessmanagerfactory_wrapper.cpp +${QtQml_GEN_DIR}/qtqml_wrapper.cpp # module is always needed ${QtQml_GEN_DIR}/qtqml_module_wrapper.cpp ) diff --git a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml index b0bdfaa27..250d1ea81 100644 --- a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml +++ b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml @@ -54,6 +54,9 @@ in generator tests folder. --> </primitive-type> + <!-- For qmlEngine(const QObject*), qmlContext(const QObject*) in qqml.h --> + <namespace-type name="QtQml"/> + <add-function signature="qmlRegisterType(PyTypeObject,const char*,int,int,const char*)" return-type="int"> <inject-documentation format="target" mode="append"> This function registers the Python type in the QML system with the name qmlName, in the library imported from uri having the version number composed from versionMajor and versionMinor. |