CMakePM: Add issue icon and tooltip description on project failure

If a project fails to load it will be displayed with a warning icon.

If the CMake configuration fails and the backup configuration is
restored, the project is also marked with a warning icon.

Change-Id: I95ccc5d171f5b789fe317fbb1da9e13dcd81a5dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Cristian Adam
2021-09-21 22:22:37 +02:00
parent 519c2f3109
commit 3922b1a917
6 changed files with 66 additions and 15 deletions

View File

@@ -78,15 +78,17 @@ public:
bool isMultiConfig() const;
bool usesAllCapsTargets() const;
int lastCMakeExitCode() const;
signals:
void configurationStarted() const;
void dataAvailable() const;
void dataAvailable(bool restoredFromBackup) const;
void dirty() const;
void errorOccurred(const QString &message) const;
private:
void startState();
void endState(const Utils::FilePath &replyFilePath);
void endState(const Utils::FilePath &replyFilePath, bool restoredFromBackup);
void startCMakeState(const QStringList &configurationArguments);
void cmakeFinishedState();