CMake: Use new MessageManager API

Flash when CMake is started, write all other output silently.
This avoids re-popping up the general messages pane all the time.

When an error occurs, that is put into the issues pane, so no need
to pop up the general messages pane for that either.

Task-number: QTCREATORBUG-24430
Change-Id: I07ae4182cbc43147fbb343b360baf9da7e65f224
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2020-12-01 12:52:59 +01:00
parent 7cded0af3f
commit c5a70e7daa
3 changed files with 15 additions and 15 deletions

View File

@@ -61,10 +61,11 @@ static FilePath cmakeReplyDirectory(const FilePath &buildDirectory)
static void reportFileApiSetupFailure()
{
Core::MessageManager::write(QCoreApplication::translate(
"CMakeProjectManager::Internal",
"Failed to set up CMake file API support. %1 cannot "
"extract project information.").arg(Core::Constants::IDE_DISPLAY_NAME));
Core::MessageManager::writeFlashing(
QCoreApplication::translate("CMakeProjectManager::Internal",
"Failed to set up CMake file API support. %1 cannot "
"extract project information.")
.arg(Core::Constants::IDE_DISPLAY_NAME));
}
static std::pair<int, int> cmakeVersion(const QJsonObject &obj)