forked from qt-creator/qt-creator
ProjectExplorer: Report project-specific kit errors/warnings
Report project-specific warnings about the kit used in Project Mode. E.g. a python project should not complain about missing toolchains, while a qmake project should. Change-Id: I5ce6742683cdeffc7ff3f1a3e8f0b89aee9aa0b4 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -25,13 +25,15 @@
|
||||
|
||||
#include "task.h"
|
||||
|
||||
#include "projectexplorerconstants.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
#include <texteditor/textmark.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/utilsicons.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include "projectexplorerconstants.h"
|
||||
|
||||
#include <QTextStream>
|
||||
|
||||
namespace ProjectExplorer
|
||||
@@ -174,4 +176,9 @@ QString toHtml(const QList<Task> &issues)
|
||||
return result;
|
||||
}
|
||||
|
||||
bool containsType(const QList<Task> &issues, Task::TaskType type)
|
||||
{
|
||||
return Utils::contains(issues, [type](const Task &t) { return t.type == type; });
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
Reference in New Issue
Block a user