@@ -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}
@@ -522,7 +522,7 @@ void PythonQtTestApi::testVariables()
522522#endif 
523523  QVERIFY (v3 == someValue);
524524
525-   QStringList l = PythonQt::self ()->introspection (PythonQt::self ()->getMainModule (), QString::null , PythonQt::Variable);
525+   QStringList l = PythonQt::self ()->introspection (PythonQt::self ()->getMainModule (), QString () , PythonQt::Variable);
526526  QSet<QString> s;
527527  //  check that at least these three variables are set
528528  s << " obj" " someObject" " someValue" 
0 commit comments