@@ -537,10 +537,10 void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i | |||||
537 | case PythonQtMethodInfo::Variant: |
|
537 | case PythonQtMethodInfo::Variant: | |
538 | { |
|
538 | { | |
539 | QVariant v = PyObjToQVariant(obj); |
|
539 | QVariant v = PyObjToQVariant(obj); | |
540 | if (v.isValid()) { |
|
540 | // the only case where conversion can fail it None and we want to pass that to, e.g. setProperty(), | |
|
541 | // so we do not check v.isValid() here | |||
541 |
|
|
542 | PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, v, ptr); | |
542 |
|
|
543 | } | |
543 | } |
|
|||
544 | break; |
|
544 | break; | |
545 | default: |
|
545 | default: | |
546 | { |
|
546 | { |
General Comments 0
You need to be logged in to leave comments.
Login now