@@ -498,12 +498,14 return Py_None; | |||||
498 | } |
|
498 | } | |
499 | } |
|
499 | } | |
500 | } |
|
500 | } | |
501 |
|
501 | // if no type id is available, conversion to a QVariant makes no sense/is not possible | ||
502 | // for all other types, we use the same qvariant conversion and pass out the constData of the variant: |
|
502 | if (info.typeId != PythonQtMethodInfo::Unknown) { | |
503 | QVariant v = PyObjToQVariant(obj, info.typeId); |
|
503 | // for all other types, we use the same qvariant conversion and pass out the constData of the variant: | |
504 | if (v.isValid()) { |
|
504 | QVariant v = PyObjToQVariant(obj, info.typeId); | |
505 | PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, v, ptr); |
|
505 | if (v.isValid()) { | |
506 | ptr = (void*)((QVariant*)ptr)->constData(); |
|
506 | PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, v, ptr); | |
|
507 | ptr = (void*)((QVariant*)ptr)->constData(); | |||
|
508 | } | |||
507 | } |
|
509 | } | |
508 | } |
|
510 | } | |
509 | } |
|
511 | } |
General Comments 0
You need to be logged in to leave comments.
Login now