Commit bbbdee7c authored by Tobias Hunger's avatar Tobias Hunger

Taskhub: Small improvements and a compile fix

Change-Id: I59738bb434b4daa664173404cb9bc7555aace4c8
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent d6a94b0d
......@@ -30,6 +30,7 @@
#include "taskhub.h"
#include <coreplugin/ioutputpane.h>
#include <utils/qtcassert.h>
using namespace ProjectExplorer;
......@@ -97,9 +98,15 @@ TaskHub::~TaskHub()
void TaskHub::addCategory(Core::Id categoryId, const QString &displayName, bool visible)
{
QTC_CHECK(!displayName.isEmpty());
emit m_instance->categoryAdded(categoryId, displayName, visible);
}
TaskHub *TaskHub::instance()
{
return m_instance;
}
void TaskHub::addTask(Task task)
{
if (task.line != -1 && !task.file.isEmpty()) {
......
......@@ -47,12 +47,12 @@ public:
static TaskHub *instance();
public slots:
static void addCategory(Core::Id categoryId, const QString &displayName, bool visible = true);
static void addTask(ProjectExplorer::Task task);
static void clearTasks(Core::Id categoryId = Core::Id());
static void removeTask(const ProjectExplorer::Task &task);
public:
static void addCategory(Core::Id categoryId, const QString &displayName, bool visible = true);
static void updateTaskFileName(unsigned int id, const QString &fileName);
static void updateTaskLineNumber(unsigned int id, int line);
static void taskMarkClicked(unsigned int id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment