diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-12-01 12:52:59 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-12-04 10:52:52 +0000 |
commit | c5a70e7daac9c988bf608e80bb3c15bcd2e5c87c (patch) | |
tree | 6017281d62e37093b5d69e14f9eac3701ecf7ee7 /src/plugins/cmakeprojectmanager/fileapiparser.cpp | |
parent | 7cded0af3f313f0b8c5caebe330671444a86811a (diff) |
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>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/fileapiparser.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/fileapiparser.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/cmakeprojectmanager/fileapiparser.cpp b/src/plugins/cmakeprojectmanager/fileapiparser.cpp index 5c3c3e92665..b62bb2c943f 100644 --- a/src/plugins/cmakeprojectmanager/fileapiparser.cpp +++ b/src/plugins/cmakeprojectmanager/fileapiparser.cpp @@ -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) |