diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-07-27 19:24:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:40 -0300 |
commit | 7a5d2e693bdfde21c58b252e6c0c35def1a64e53 (patch) | |
tree | d520bf43e8b1ba6dd591d87f53535d8c335189c5 /libpyside/pysidesignal.h | |
parent | aa091e00ef71fb309844de900dd9a8248d62af14 (diff) |
Fix bug 941 - "Signals with QtCore.Qt types as arguments has invalid signatures"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside/pysidesignal.h')
-rw-r--r-- | libpyside/pysidesignal.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libpyside/pysidesignal.h b/libpyside/pysidesignal.h index d0efe16ab..65c2ef39d 100644 --- a/libpyside/pysidesignal.h +++ b/libpyside/pysidesignal.h @@ -57,10 +57,16 @@ PYSIDE_API bool checkType(PyObject* type); * @param name of the Signal to be registered on meta object * @param signatures a list of signatures supported by this signal, ended with a NULL pointer * @return Return a new reference to PyObject* of type PySideSignal + * @deprecated Use registerSignals **/ PYSIDE_API PySideSignal* newObject(const char* name, ...); /** + * Register all C++ signals of a QObject on Python type. + */ +PYSIDE_API void registerSignals(SbkObjectType* pyObj, const QMetaObject* metaObject); + +/** * This function creates a Signal object which stay attached to QObject class based on a list of QMetaMethod * * @param source of the Signal to be registered on meta object @@ -104,10 +110,7 @@ PYSIDE_API const char* getSignature(PySideSignalInstance* signal); PYSIDE_API void updateSourceObject(PyObject* source); /** - * This function is used to retrieve the signal signature - * - * @param self The Signal object - * @return Return the signal signature + * @deprecated Use registerSignals **/ PYSIDE_API void addSignalToWrapper(SbkObjectType* wrapperType, const char* signalName, PySideSignal* signal); |