Created PySide cleanup functions used to register functions to be called before the python die.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
b8436f6b1e
commit
6974551674
6 changed files with 59 additions and 20 deletions
|
|
@ -75,6 +75,15 @@ template<typename T>
|
|||
struct initQtMetaType<T, false> {
|
||||
};
|
||||
|
||||
|
||||
typedef void (*CleanupFunction)(void);
|
||||
|
||||
/**
|
||||
* Register a function to be called before python die
|
||||
*/
|
||||
PYSIDE_API void registerCleanupFunction(CleanupFunction func);
|
||||
PYSIDE_API void runCleanupFunctions();
|
||||
|
||||
} //namespace PySide
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue