Commit 02e188c3 authored by Christian Stenger's avatar Christian Stenger

AutoTest: Trigger signal by QFutureWatcher

The finished signal might be triggered before the started.

Change-Id: Id23612553fdd19de2ddbee72b20b4e85448e1611
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 53483fd8
......@@ -79,6 +79,8 @@ TestCodeParser::TestCodeParser(TestTreeModel *parent)
this, &TestCodeParser::onAllTasksFinished);
connect(this, &TestCodeParser::partialParsingFinished,
this, &TestCodeParser::onPartialParsingFinished);
connect(&m_futureWatcher, &QFutureWatcher<TestParseResult>::started,
this, &TestCodeParser::parsingStarted);
connect(&m_futureWatcher, &QFutureWatcher<TestParseResult>::finished,
this, &TestCodeParser::onFinished);
connect(&m_futureWatcher, &QFutureWatcher<TestParseResult>::resultReadyAt,
......@@ -747,7 +749,6 @@ void TestCodeParser::scanForTests(const QStringList &fileList)
Core::ProgressManager::addTask(future, tr("Scanning for Tests"),
Autotest::Constants::TASK_PARSE);
}
emit parsingStarted();
}
void TestCodeParser::onTaskStarted(Core::Id type)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment