@@ -386,8 +386,8 @@ void PythonQtTestSignalHandler::testSignalHandler()
386386 QVERIFY (_helper->emitVariantSignal (12 ));
387387 _helper->setExpectedVariant (QStringList () << " test1" << " test2" );
388388 QVERIFY (_helper->emitVariantSignal (QStringList () << " test1" << " test2" ));
389- _helper->setExpectedVariant (qVariantFromValue ((QObject*)_helper));
390- QVERIFY (_helper->emitVariantSignal (qVariantFromValue ((QObject*)_helper)));
389+ _helper->setExpectedVariant (QVariant::fromValue ((QObject*)_helper));
390+ QVERIFY (_helper->emitVariantSignal (QVariant::fromValue ((QObject*)_helper)));
391391
392392 PyRun_SimpleString (" def testComplexSignal(a,b,l,o):\n if a==12 and b==13 and l==('test1','test2') and o == obj: obj.setPassed();\n " );
393393 // intentionally not normalized signal:
@@ -497,7 +497,7 @@ void PythonQtTestApi::testCall()
497497 QVERIFY (_helper->call (" testCall1" , QVariantList () << QVariant (" test" ), QVariant (QString (" test2" ))));
498498
499499 PyRun_SimpleString (" def testCall2(a, b):\n if a=='test' and b==obj: obj.setPassed();\n return obj;\n " );
500- QVariant r = PythonQt::self ()->call (PythonQt::self ()->getMainModule (), " testCall2" , QVariantList () << QVariant (" test" ) << qVariantFromValue ((QObject*)_helper));
500+ QVariant r = PythonQt::self ()->call (PythonQt::self ()->getMainModule (), " testCall2" , QVariantList () << QVariant (" test" ) << QVariant::fromValue ((QObject*)_helper));
501501 QObject* p = qvariant_cast<QObject*>(r);
502502 QVERIFY (p==_helper);
503503}
@@ -516,7 +516,7 @@ void PythonQtTestApi::testVariables()
516516 QVariant v3 = PythonQt::self ()->getVariable (PythonQt::self ()->getMainModule (), " someValue" );
517517 QVERIFY (v3 == QVariant (QStringList () << " test1" << " test2" ));
518518
519- QStringList l = PythonQt::self ()->introspection (PythonQt::self ()->getMainModule (), QString::null , PythonQt::Variable);
519+ QStringList l = PythonQt::self ()->introspection (PythonQt::self ()->getMainModule (), QString () , PythonQt::Variable);
520520 QSet<QString> s;
521521 // check that at least these three variables are set
522522 s << " obj" << " someObject" << " someValue" ;
0 commit comments