@@ -132,6 +132,11 PyObject* PythonQtSignalTarget::call(PyObject* callable, const PythonQtMethodInf | |||||
132 | return result; |
|
132 | return result; | |
133 | } |
|
133 | } | |
134 |
|
134 | |||
|
135 | bool PythonQtSignalTarget::isSame( int signalId, PyObject* callable ) const | |||
|
136 | { | |||
|
137 | return PyObject_Compare(callable, _callable) == 0 && signalId==_signalId; | |||
|
138 | } | |||
|
139 | ||||
135 | //------------------------------------------------------------------------------ |
|
140 | //------------------------------------------------------------------------------ | |
136 |
|
141 | |||
137 | PythonQtSignalReceiver::PythonQtSignalReceiver(QObject* obj):PythonQtSignalReceiverBase(obj) |
|
142 | PythonQtSignalReceiver::PythonQtSignalReceiver(QObject* obj):PythonQtSignalReceiverBase(obj) |
@@ -84,7 +84,7 public: | |||||
84 | void call(void **arguments) const; |
|
84 | void call(void **arguments) const; | |
85 |
|
85 | |||
86 | //! check if it is the same signal target |
|
86 | //! check if it is the same signal target | |
87 |
bool isSame(int signalId, PyObject* callable) const |
|
87 | bool isSame(int signalId, PyObject* callable) const; | |
88 |
|
88 | |||
89 | //! call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as result value (or NULL) |
|
89 | //! call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as result value (or NULL) | |
90 | static PyObject* call(PyObject* callable, const PythonQtMethodInfo* methodInfo, void **arguments, bool skipFirstArgumentOfMethodInfo = false); |
|
90 | static PyObject* call(PyObject* callable, const PythonQtMethodInfo* methodInfo, void **arguments, bool skipFirstArgumentOfMethodInfo = false); |
General Comments 0
You need to be logged in to leave comments.
Login now