aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/task.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-05-09 16:02:02 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2018-05-14 09:32:28 +0000
commit20d2d76824e7d86ec03d9d135e1f5300a38eda30 (patch)
treed2350c8b77a944ddad3870c1f401704f25a108c1 /src/plugins/projectexplorer/task.h
parent6afd9ecaf3c852a5d7c3f42095233e60fcee5fdc (diff)
Clang: Do not flash issues pane when switching editor
Previously, when swichting to a file with errors, the Issues pane button would flash. Stop this for the clang code model issues as it is rather annoying since the issues pane is updated for the current document. Change-Id: I403a8b8cd0deef586c53769d0b646855a7fc9278 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/task.h')
-rw-r--r--src/plugins/projectexplorer/task.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/task.h b/src/plugins/projectexplorer/task.h
index a0f9c168e71..f3e1b76c88b 100644
--- a/src/plugins/projectexplorer/task.h
+++ b/src/plugins/projectexplorer/task.h
@@ -52,11 +52,18 @@ public:
Warning
};
+ enum Option : char {
+ NoOptions = 0,
+ AddTextMark = 1 << 0,
+ FlashWorthy = 1 << 1,
+ };
+ using Options = char;
+
Task() = default;
Task(TaskType type, const QString &description,
const Utils::FileName &file, int line, Core::Id category,
const QIcon &icon = QIcon(),
- bool addTextMark = true);
+ Options options = AddTextMark | FlashWorthy);
static Task compilerMissingTask();
static Task buildConfigurationMissingTask();
@@ -66,7 +73,7 @@ public:
unsigned int taskId = 0;
TaskType type = Unknown;
- bool addTextMark = true;
+ Options options = AddTextMark | FlashWorthy;
QString description;
Utils::FileName file;
int line = -1;