aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/taskhub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/taskhub.cpp')
-rw-r--r--src/plugins/projectexplorer/taskhub.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/taskhub.cpp b/src/plugins/projectexplorer/taskhub.cpp
index da839e89f19..58e797de803 100644
--- a/src/plugins/projectexplorer/taskhub.cpp
+++ b/src/plugins/projectexplorer/taskhub.cpp
@@ -51,13 +51,9 @@ public:
: Tr::tr("Warning"));
setPriority(task.type == Task::Error ? TextEditor::TextMark::NormalPriority
: TextEditor::TextMark::LowPriority);
- if (task.category == Constants::TASK_CATEGORY_COMPILE) {
- setToolTip("<html><body><b>" + Tr::tr("Build Issue")
- + "</b><br/><code style=\"white-space:pre;font-family:monospace\">"
- + task.description().toHtmlEscaped() + "</code></body></html>");
- } else {
- setToolTip(task.description());
- }
+ setToolTip(task.formattedDescription({Task::WithSummary | Task::WithLinks},
+ task.category == Constants::TASK_CATEGORY_COMPILE
+ ? Tr::tr("Build Issue") : QString()));
setIcon(task.icon());
setVisible(!task.icon().isNull());
}