diff options
Diffstat (limited to 'libpyside/pyside.h')
-rw-r--r-- | libpyside/pyside.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libpyside/pyside.h b/libpyside/pyside.h index 21515c8d1..cae050b5d 100644 --- a/libpyside/pyside.h +++ b/libpyside/pyside.h @@ -26,6 +26,8 @@ #include <Python.h> #include <pysidemacros.h> #include <QMetaType> +#include <QHash> +#include <QList> namespace PySide { @@ -42,6 +44,17 @@ inline uint hash(const T& value) } /** + * Fill QObject properties and do signal connections using the values found in \p kwds dictonary. + * \param qObj PyObject fot the QObject. + * \param metaObj QMetaObject of \p qObj. + * \param blackList keys to be ignored in kwds dictionary, this string list MUST be sorted. + * \param blackListSize numbe rof elements in blackList. + * \param kwds key->value dictonary. + * \return True if everything goes well, false with a Python error setted otherwise. + */ +PYSIDE_API bool fillQtProperties(PyObject* qObj, const QMetaObject* metaObj, PyObject* kwds, const char** blackList, unsigned int blackListSize); + +/** * If the type \p T was registered on Qt meta type system with Q_DECLARE_METATYPE macro, this class will initialize * the meta type. * |