diff options
author | Tobias Hunger <[email protected]> | 2013-08-15 12:14:46 +0200 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2013-08-19 11:24:32 +0200 |
commit | 85b2017a6944863f1147c143fdd8299a3ebde276 (patch) | |
tree | 27a62b7aec33cb5d1247f83386fc86a40c25c99b /src/plugins/debugger/debuggerplugin.cpp | |
parent | 53a49e3a64f739cd4f6cb94c23bbf85321f014fa (diff) |
TaskHub: Move code to be more conform with other singletons
Make methods static and add a instance() method for Signals/Slots.
Remove ProjectExplorerPlugin::taskHub() method and use the new
ones instead.
Change-Id: Ifae24ff19579fc524cbd61bddc826095c443adfa
Reviewed-by: Daniel Teske <[email protected]>
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 4779e92cebc..a92fae8d8c6 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -83,6 +83,7 @@ #include <projectexplorer/localapplicationrunconfiguration.h> #include <projectexplorer/buildmanager.h> +#include <projectexplorer/taskhub.h> #include <projectexplorer/toolchain.h> #include <projectexplorer/devicesupport/deviceprocesslist.h> #include <projectexplorer/devicesupport/deviceprocessesdialog.h> @@ -1504,6 +1505,13 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, // Cpp/Qml ui setup m_mainWindow = new DebuggerMainWindow; + TaskHub::addCategory(Debugger::Constants::TASK_CATEGORY_DEBUGGER_DEBUGINFO, + tr("Debug Information")); + TaskHub::addCategory(Debugger::Constants::TASK_CATEGORY_DEBUGGER_TEST, + tr("Debugger Test")); + TaskHub::addCategory(Debugger::Constants::TASK_CATEGORY_DEBUGGER_RUNTIME, + tr("Debugger Runtime")); + return true; } |