AutoTest: Avoid passing around pointer without owner...

...when using signals and slots between threads.

Change-Id: Ib1ce607e225cb8d9973393c5bdaeebaa6e30bb41
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-02-25 13:02:31 +01:00
parent ba61f2946d
commit 19c8c9bc4b
9 changed files with 62 additions and 59 deletions

View File

@@ -55,7 +55,7 @@ signals:
void testRunStarted();
void testRunFinished();
void requestStopTestRun();
void testResultReady(TestResult *result);
void testResultReady(const TestResultPtr &result);
public slots:
void prepareToRunTests();
@@ -69,7 +69,7 @@ private:
void runTests();
explicit TestRunner(QObject *parent = 0);
QFutureWatcher<TestResult *> m_futureWatcher;
QFutureWatcher<TestResultPtr> m_futureWatcher;
QList<TestConfiguration *> m_selectedTests;
bool m_executingTests;