From ebaf95ca1aba9febe62cb98cd40fc9e710c45b12 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Mon, 20 Jun 2011 15:20:44 -0300 Subject: Removed glue code for QObject.inherits function. Reviewer: Marcelo Lira Hugo Parente Lima --- libpyside/pyside.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libpyside/pyside.h') diff --git a/libpyside/pyside.h b/libpyside/pyside.h index fae1b420f..747b08da8 100644 --- a/libpyside/pyside.h +++ b/libpyside/pyside.h @@ -102,6 +102,14 @@ PYSIDE_API void destroyQCoreApplication(); */ PYSIDE_API PyObject* getMetaDataFromQObject(QObject* cppSelf, PyObject* self, PyObject* name); +/** + * Check if self inherits from class_name + * \param self Python object + * \param class_name strict with the class name + * \return Returns true if self object inherits from class_name, otherwise returns false + */ +PYSIDE_API bool inherits(PyTypeObject* self, const char* class_name); + } //namespace PySide -- cgit v1.2.3