diff options
Diffstat (limited to 'sources/pyside6/libpysideqml/pysideqml.cpp')
-rw-r--r-- | sources/pyside6/libpysideqml/pysideqml.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqml.cpp b/sources/pyside6/libpysideqml/pysideqml.cpp new file mode 100644 index 000000000..3fe673fdf --- /dev/null +++ b/sources/pyside6/libpysideqml/pysideqml.cpp @@ -0,0 +1,35 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#include "pysideqml.h" +#include "pysideqmllistproperty_p.h" +#include "pysideqmlattached_p.h" +#include "pysideqmlextended_p.h" +#include "pysideqmlforeign_p.h" +#include "pysideqmlnamedelement_p.h" +#include "pysideqmluncreatable.h" +#include "pysideqmlmetacallerror_p.h" + +#include <QtQml/QQmlPropertyMap> +#include <QtQml/QQmlComponent> + +#include <signalmanager.h> + +namespace PySide::Qml +{ + +void init(PyObject *module) +{ + initQtQmlListProperty(module); + initQmlAttached(module); + initQmlForeign(module); + initQmlExtended(module); + initQmlNamedElement(module); + initQmlUncreatable(module); + PySide::SignalManager::setQmlMetaCallErrorHandler(PySide::Qml::qmlMetaCallErrorHandler); + + qRegisterMetaType<QQmlPropertyMap *>(); // PYSIDE-1845, QQmlPropertyMap * properties + qRegisterMetaType<QQmlComponent *>(); // PYSIDE-2415, QQmlComponent * properties +} + +} //namespace PySide::Qml |