diff options
Diffstat (limited to 'src/plugins/projectexplorer/taskhub.cpp')
-rw-r--r-- | src/plugins/projectexplorer/taskhub.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/projectexplorer/taskhub.cpp b/src/plugins/projectexplorer/taskhub.cpp index ea38fe0422..d2528d955c 100644 --- a/src/plugins/projectexplorer/taskhub.cpp +++ b/src/plugins/projectexplorer/taskhub.cpp @@ -44,9 +44,9 @@ const char TASK_MARK_WARNING[] = "Task.Mark.Warning"; const char TASK_MARK_ERROR[] = "Task.Mark.Error"; static TaskHub *m_instance = nullptr; -QVector<Core::Id> TaskHub::m_registeredCategories; +QVector<Utils::Id> TaskHub::m_registeredCategories; -static Core::Id categoryForType(Task::TaskType type) +static Utils::Id categoryForType(Task::TaskType type) { switch (type) { case Task::Error: @@ -54,7 +54,7 @@ static Core::Id categoryForType(Task::TaskType type) case Task::Warning: return TASK_MARK_WARNING; default: - return Core::Id(); + return Utils::Id(); } } @@ -74,9 +74,9 @@ public: if (task.category == Constants::TASK_CATEGORY_COMPILE) { setToolTip("<html><body><b>" + QApplication::translate("TaskHub", "Build Issue") + "</b><br/><code style=\"white-space:pre;font-family:monospace\">" - + task.description.toHtmlEscaped() + "</code></body></html>"); + + task.description().toHtmlEscaped() + "</code></body></html>"); } else { - setToolTip(task.description); + setToolTip(task.description()); } setIcon(task.icon); setVisible(!task.icon.isNull()); @@ -131,7 +131,7 @@ TaskHub::~TaskHub() m_instance = nullptr; } -void TaskHub::addCategory(Core::Id categoryId, const QString &displayName, bool visible) +void TaskHub::addCategory(Utils::Id categoryId, const QString &displayName, bool visible) { QTC_CHECK(!displayName.isEmpty()); QTC_ASSERT(!m_registeredCategories.contains(categoryId), return); @@ -144,7 +144,7 @@ TaskHub *TaskHub::instance() return m_instance; } -void TaskHub::addTask(Task::TaskType type, const QString &description, Core::Id category) +void TaskHub::addTask(Task::TaskType type, const QString &description, Utils::Id category) { addTask(Task(type, description, {}, -1, category)); } @@ -152,7 +152,7 @@ void TaskHub::addTask(Task::TaskType type, const QString &description, Core::Id void TaskHub::addTask(Task task) { QTC_ASSERT(m_registeredCategories.contains(task.category), return); - QTC_ASSERT(!task.description.isEmpty(), return); + QTC_ASSERT(!task.description().isEmpty(), return); QTC_ASSERT(!task.isNull(), return); QTC_ASSERT(task.m_mark.isNull(), return); @@ -165,7 +165,7 @@ void TaskHub::addTask(Task task) emit m_instance->taskAdded(task); } -void TaskHub::clearTasks(Core::Id categoryId) +void TaskHub::clearTasks(Utils::Id categoryId) { QTC_ASSERT(!categoryId.isValid() || m_registeredCategories.contains(categoryId), return); emit m_instance->tasksCleared(categoryId); @@ -196,7 +196,7 @@ void TaskHub::showTaskInEditor(unsigned int id) emit m_instance->openTask(id); } -void TaskHub::setCategoryVisibility(Core::Id categoryId, bool visible) +void TaskHub::setCategoryVisibility(Utils::Id categoryId, bool visible) { QTC_ASSERT(m_registeredCategories.contains(categoryId), return); emit m_instance->categoryVisibilityChanged(categoryId, visible); |