##// END OF EJS Templates
allow to pass invalid QVariants as QVariant parameter of slots...
florianlink -
r91:7fc8b24bca05
parent child
Show More
@@ -413,6 +413,13 void PythonQtTestApi::testDynamicProperties()
413 main.evalScript("obj.testProp = None");
413 main.evalScript("obj.testProp = None");
414 QVERIFY(12 == main.getVariable("obj.testProp").toInt());
414 QVERIFY(12 == main.getVariable("obj.testProp").toInt());
415
415
416 // remove the dynamic property
417 main.evalScript("obj.setProperty('testProp', None)");
418
419 // check if dynamic property is really gone
420 QStringList l2 = PythonQt::self()->introspection(PythonQt::self()->getMainModule(), "obj", PythonQt::Anything);
421 QVERIFY(!l2.contains("testProp"));
422
416 }
423 }
417
424
418
425
General Comments 0
You need to be logged in to leave comments. Login now