Debugger: Replace Internal::mainWindow

... by DebuggerMainWindow::instance() and clean up a few uses.

Change-Id: I7ae4073aa97fc2f00108533bed91db330b07880f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-08-22 14:40:49 +02:00
parent 0303b84fff
commit 4b7a9ae5db
5 changed files with 20 additions and 24 deletions

View File

@@ -1258,7 +1258,7 @@ void DebuggerEngine::notifyInferiorSpontaneousStop()
showMessage(tr("Stopped."), StatusBar);
setState(InferiorStopOk);
if (boolSetting(RaiseOnInterrupt))
ICore::raiseWindow(Internal::mainWindow());
ICore::raiseWindow(DebuggerMainWindow::instance());
EngineManager::activateEngine(this);
}
@@ -1423,7 +1423,7 @@ void DebuggerEnginePrivate::updateState(bool alsoUpdateCompanion)
m_detachAction.setEnabled(detachable);
if (stopped)
QApplication::alert(mainWindow(), 3000);
QApplication::alert(ICore::mainWindow(), 3000);
updateReverseActions();