ProjectExplorer: Delay-create TaskHub

Effectively only by a few lines.

Change-Id: Ieb548d0a2f5ced033881106c76adc9a5e3e16663
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-02-01 18:13:43 +01:00
parent 0bd3fafb0a
commit c6be4fd2d4
9 changed files with 42 additions and 51 deletions

View File

@@ -50,7 +50,7 @@ void CompilerOutputProcessor::start()
break;
}
connect(ProjectExplorer::TaskHub::instance(), &ProjectExplorer::TaskHub::taskAdded,
connect(&ProjectExplorer::taskHub(), &ProjectExplorer::TaskHub::taskAdded,
this, &CompilerOutputProcessor::handleTask);
while (!m_source.atEnd()) {
parser.appendMessage(QString::fromLocal8Bit(m_source.readLine().trimmed()),