Autotests: solve warning for QProcess::ProcessState metatype registration

This commit is contained in:
Friedrich W. H. Kossebau 2017-06-03 01:16:11 +02:00
parent 2da0a9428d
commit c010a9fae0

View file

@ -86,6 +86,7 @@ void TestQtSurfaceExtension::testCloseWindow()
QVERIFY(extension); QVERIFY(extension);
QSignalSpy surfaceExtensionDestroyedSpy(extension, &QObject::destroyed); QSignalSpy surfaceExtensionDestroyedSpy(extension, &QObject::destroyed);
QVERIFY(surfaceExtensionSpy.isValid()); QVERIFY(surfaceExtensionSpy.isValid());
qRegisterMetaType<QProcess::ProcessState>();
QSignalSpy processStateChangedSpy(&process, &QProcess::stateChanged); QSignalSpy processStateChangedSpy(&process, &QProcess::stateChanged);
QVERIFY(processStateChangedSpy.isValid()); QVERIFY(processStateChangedSpy.isValid());
extension->close(); extension->close();