##// END OF EJS Templates
fixed comparision of QObjects...
florianlink -
r104:65ef4ea92470
parent child
Show More
@@ -124,9 +124,6 public:
124
124
125 static PyObject* QVariantMapToPyObject(const QVariantMap& m);
125 static PyObject* QVariantMapToPyObject(const QVariantMap& m);
126 static PyObject* QVariantListToPyObject(const QVariantList& l);
126 static PyObject* QVariantListToPyObject(const QVariantList& l);
127
128 //! get human readable string from qvariant
129 static QString qVariantToString(const QVariant& v);
130
127
131 //! get human readable string from CPP object (when the metatype is known)
128 //! get human readable string from CPP object (when the metatype is known)
132 static QString CPPObjectToString(int type, const void* data);
129 static QString CPPObjectToString(int type, const void* data);
@@ -503,7 +503,7 static int PythonQtInstanceWrapper_compare(PyObject * obj1, PyObject * obj2)
503 if (w1->_obj && w2->_obj) {
503 if (w1->_obj && w2->_obj) {
504 void* args[2];
504 void* args[2];
505 args[0] = &result;
505 args[0] = &result;
506 args[2] = obj2; // this is a reference, so it needs the direct pointer
506 args[1] = obj2; // this is a reference, so it needs the direct pointer
507 w1->_obj->qt_metacall(QMetaObject::InvokeMetaMethod, info._slot->slotIndex(), args);
507 w1->_obj->qt_metacall(QMetaObject::InvokeMetaMethod, info._slot->slotIndex(), args);
508 }
508 }
509 }
509 }
General Comments 0
You need to be logged in to leave comments. Login now