forked from qt-creator/qt-creator
AutoTest: Trigger signal by QFutureWatcher
The finished signal might be triggered before the started. Change-Id: Id23612553fdd19de2ddbee72b20b4e85448e1611 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user