drop some debugs
This commit is contained in:
parent
dadffcb784
commit
b0b480a539
@ -115,7 +115,6 @@ static void PyThing_setThing(PyThing *self, Thing *thing)
|
||||
PyObject *pyStateTypeId = PyDict_GetItemString(pyState, "stateTypeId");
|
||||
StateTypeId stid = StateTypeId(PyUnicode_AsUTF8AndSize(pyStateTypeId, nullptr));
|
||||
if (stid == stateTypeId) {
|
||||
qWarning() << "Updating state" << stateTypeId << value;
|
||||
pyState = Py_BuildValue("{s:s, s:O}",
|
||||
"stateTypeId", stateTypeId.toString().toUtf8().data(),
|
||||
"value", QVariantToPyObject(value));
|
||||
|
||||
@ -45,8 +45,6 @@ PyObject *QVariantToPyObject(const QVariant &value)
|
||||
|
||||
QVariant PyObjectToQVariant(PyObject *pyObject)
|
||||
{
|
||||
qWarning() << "**************** type" << pyObject->ob_type->tp_name;
|
||||
|
||||
if (qstrcmp(pyObject->ob_type->tp_name, "int") == 0) {
|
||||
return QVariant(PyLong_AsLongLong(pyObject));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user