diff options
author | hjk <qtc-committer@nokia.com> | 2010-11-10 11:39:01 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-11-10 12:08:23 +0100 |
commit | 2161e0f6d9c69e96d79979943f9be3a97ef88f2b (patch) | |
tree | 249ac81f851fcde62474f5c75fda79eb87a7f3e3 /src/plugins/debugger/sourcefileswindow.cpp | |
parent | 60bafeb81d2860a8149bc79687aa5ad3243455dd (diff) | |
download | qt-creator-2161e0f6d9c69e96d79979943f9be3a97ef88f2b.tar.gz |
debugger: refactoring of the plugin interface
There's some 'external' and some 'internal' part now. Other plugins
are only supposed the external interface.
Diffstat (limited to 'src/plugins/debugger/sourcefileswindow.cpp')
-rw-r--r-- | src/plugins/debugger/sourcefileswindow.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/plugins/debugger/sourcefileswindow.cpp b/src/plugins/debugger/sourcefileswindow.cpp index 0267ca89f3..f7bcadf213 100644 --- a/src/plugins/debugger/sourcefileswindow.cpp +++ b/src/plugins/debugger/sourcefileswindow.cpp @@ -31,8 +31,8 @@ #include "debuggeractions.h" #include "debuggerconstants.h" +#include "debuggercore.h" #include "debuggerengine.h" -#include "debuggerplugin.h" #include <utils/qtcassert.h> #include <utils/savedaction.h> @@ -54,14 +54,9 @@ namespace Debugger { namespace Internal { -static DebuggerPlugin *plugin() -{ - return DebuggerPlugin::instance(); -} - static DebuggerEngine *currentEngine() { - return DebuggerPlugin::instance()->currentEngine(); + return debuggerCore()->currentEngine(); } SourceFilesWindow::SourceFilesWindow(QWidget *parent) @@ -86,7 +81,7 @@ SourceFilesWindow::SourceFilesWindow(QWidget *parent) void SourceFilesWindow::sourceFileActivated(const QModelIndex &index) { - plugin()->gotoLocation(index.data().toString()); + debuggerCore()->gotoLocation(index.data().toString()); } void SourceFilesWindow::contextMenuEvent(QContextMenuEvent *ev) @@ -120,7 +115,7 @@ void SourceFilesWindow::contextMenuEvent(QContextMenuEvent *ev) if (act == act1) currentEngine()->reloadSourceFiles(); else if (act == act2) - plugin()->gotoLocation(name); + debuggerCore()->gotoLocation(name); } } // namespace Internal |