aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtDeclarative/pysideqmlregistertype.h
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/QtDeclarative/pysideqmlregistertype.h')
-rw-r--r--PySide/QtDeclarative/pysideqmlregistertype.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/PySide/QtDeclarative/pysideqmlregistertype.h b/PySide/QtDeclarative/pysideqmlregistertype.h
index 11a5a9a2e..aa2520049 100644
--- a/PySide/QtDeclarative/pysideqmlregistertype.h
+++ b/PySide/QtDeclarative/pysideqmlregistertype.h
@@ -23,14 +23,33 @@
#ifndef PYSIDEQMLREGISTERTYPE_H
#define PYSIDEQMLREGISTERTYPE_H
-#include <basewrapper.h>
+#include <Python.h>
+
+struct SbkObjectType;
namespace PySide
{
extern void* nextQmlElementMemoryAddr;
-void initQmlSupport();
+/**
+ * Init the QML support doign things like registering QtDeclarative.ListProperty and create the necessary stuff for
+ * qmlRegisterType.
+ *
+ * \param module QtDeclarative python module
+ */
+void initQmlSupport(PyObject* module);
+
+/**
+ * PySide implementation of qmlRegisterType<T> function.
+ *
+ * \param pyObj Python type to be registered.
+ * \param uri QML element uri.
+ * \param versionMajor QML component major version.
+ * \param versionMinor QML component minor version.
+ * \param qmlName QML element name
+ * \return the metatype id of the registered type.
+ */
int qmlRegisterType(PyObject* pyObj, const char* uri, int versionMajor, int versionMinor, const char* qmlName);
}