Created function used in PyObject getAttro.

Moved the code generated to a function in libpyside.
Create unit test for bug #525.

Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
Renato Araujo Oliveira Filho 2010-12-15 17:52:29 -03:00 • committed by Hugo Parente Lima
commit 22b7485419
4 changed files with 81 additions and 0 deletions

View file

@ -93,6 +93,15 @@ PYSIDE_API void runCleanupFunctions();
*/
PYSIDE_API void destroyQCoreApplication();
/**
* Check for properties and signals registered on MetaObject and return these
* \param cppSelf Is the QObject which contains the metaobject
* \param self Python object of cppSelf
* \param name Name of the argument which the function will try retrieve from MetaData
* \return The Python object which contains the Data obtained in metaObject or the Python attribute related with name
*/
PYSIDE_API PyObject* getMetaDataFromQObject(QObject* cppSelf, PyObject* self, PyObject* name);
} //namespace PySide