##// END OF EJS Templates
fixed isSame to use python comparison...
florianlink -
r160:7b78560a4b52
parent child
Show More
@@ -132,6 +132,11 PyObject* PythonQtSignalTarget::call(PyObject* callable, const PythonQtMethodInf
132 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 142 PythonQtSignalReceiver::PythonQtSignalReceiver(QObject* obj):PythonQtSignalReceiverBase(obj)
@@ -84,7 +84,7 public:
84 84 void call(void **arguments) const;
85 85
86 86 //! check if it is the same signal target
87 bool isSame(int signalId, PyObject* callable) const { return callable==_callable && signalId==_signalId; }
87 bool isSame(int signalId, PyObject* callable) const;
88 88
89 89 //! call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as result value (or NULL)
90 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