Commit 6ebd3cc7 authored by Christian Stenger's avatar Christian Stenger

AutoTest: Trigger onPartialParseFinished directly

Change-Id: I291712b5820c5bf84ee92621bc91497ec4264709
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 02e188c3
......@@ -77,8 +77,6 @@ TestCodeParser::TestCodeParser(TestTreeModel *parent)
this, &TestCodeParser::onTaskStarted);
connect(progressManager, &Core::ProgressManager::allTasksFinished,
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,
......@@ -774,14 +772,14 @@ void TestCodeParser::onFinished()
case PartialParse:
qCDebug(LOG) << "setting state to Idle (onFinished, PartialParse)";
m_parserState = Idle;
emit partialParsingFinished();
onPartialParsingFinished();
break;
case FullParse:
qCDebug(LOG) << "setting state to Idle (onFinished, FullParse)";
m_parserState = Idle;
m_dirty = parsingHasFailed;
if (m_partialUpdatePostponed || m_fullUpdatePostponed || parsingHasFailed) {
emit partialParsingFinished();
onPartialParsingFinished();
} else {
qCDebug(LOG) << "emitting parsingFinished"
<< "(onFinished, FullParse, nothing postponed, parsing succeeded)";
......
......@@ -70,7 +70,6 @@ signals:
void parsingStarted();
void parsingFinished();
void parsingFailed();
void partialParsingFinished();
public slots:
void emitUpdateTestTree();
......
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