##// END OF EJS Templates
allow to pass invalid QVariants as QVariant parameter of slots...
florianlink -
r90:6da6bce07af7
parent child
Show More
@@ -537,10 +537,10 void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i
537 537 case PythonQtMethodInfo::Variant:
538 538 {
539 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 544 break;
545 545 default:
546 546 {
General Comments 0
You need to be logged in to leave comments. Login now