From c1378e70f08427d30946c10da09d50dfb56bd14c 2010-02-23 14:05:07 From: florianlink Date: 2010-02-23 14:05:07 Subject: [PATCH] fixed QVariant return value for ULongLong and LongLong git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@138 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/src/PythonQtConversion.cpp b/src/PythonQtConversion.cpp index 8232fb3..472583b 100644 --- a/src/PythonQtConversion.cpp +++ b/src/PythonQtConversion.cpp @@ -917,6 +917,18 @@ QVariant PythonQtConv::PyObjToQVariant(PyObject* val, int type) if (ok) v = qVariantFromValue(d); break; } + case QMetaType::LongLong: + { + qint64 d = PyObjGetLongLong(val, false, ok); + if (ok) v = qVariantFromValue(d); + } + break; + case QMetaType::ULongLong: + { + quint64 d = PyObjGetULongLong(val, false, ok); + if (ok) v = qVariantFromValue(d); + } + break; case QMetaType::Short: { short d = (short) PyObjGetInt(val,false,ok);