OSDN Git Service

debugger: more interface cleanup
authorhjk <qtc-committer@nokia.com>
Mon, 6 Dec 2010 07:51:46 +0000 (08:51 +0100)
committerhjk <qtc-committer@nokia.com>
Mon, 6 Dec 2010 07:51:46 +0000 (08:51 +0100)
Looks like DebuggerPlugin::mainWindow() was used after all.

src/plugins/debugger/debuggerplugin.cpp
src/plugins/debugger/debuggerplugin.h
src/plugins/qt4projectmanager/qt-maemo/maemodebugsupport.cpp

index 111682d..cbf2f69 100644 (file)
@@ -3340,6 +3340,11 @@ bool DebuggerPlugin::isActiveDebugLanguage(int language)
     return theDebuggerCore->isActiveDebugLanguage(language);
 }
 
+DebuggerMainWindow *DebuggerPlugin::mainWindow()
+{
+    return theDebuggerCore->m_mainWindow;
+}
+
 QWidget *DebugMode::widget()
 {
     if (!m_widget) {
index 211fdf1..625c9e5 100644 (file)
@@ -43,6 +43,7 @@ class RunControl;
 
 namespace Debugger {
 
+class DebuggerMainWindow;
 class DebuggerRunControl;
 class DebuggerStartParameters;
 
@@ -59,11 +60,15 @@ public:
     DebuggerPlugin();
     ~DebuggerPlugin();
 
+    // Used by Maemo debugging support.
     static DebuggerRunControl *createDebugger(const DebuggerStartParameters &sp,
         ProjectExplorer::RunConfiguration *rc = 0);
     static void startDebugger(ProjectExplorer::RunControl *runControl);
     static void displayDebugger(ProjectExplorer::RunControl *runControl);
+
+    // Used by QmlJSInspector.
     static bool isActiveDebugLanguage(int language);
+    static DebuggerMainWindow *mainWindow();
 
 private:
     // IPlugin implementation.
index 2c2e615..af85c55 100644 (file)
@@ -54,7 +54,6 @@
 
 using namespace Core;
 using namespace Debugger;
-using namespace Debugger::Internal;
 using namespace ProjectExplorer;
 
 namespace Qt4ProjectManager {