forked from qt-creator/qt-creator
debugger: remove special mechanism to update watcher and return window
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
#include "watchwindow.h"
|
||||
|
||||
#include "watchutils.h"
|
||||
#include "breakhandler.h"
|
||||
#include "breakhandler.h"
|
||||
#include "stackhandler.h"
|
||||
#include "watchhandler.h"
|
||||
|
||||
@@ -2072,7 +2072,15 @@ void DebuggerPluginPrivate::setSimpleDockWidgetArrangement(const QString &active
|
||||
|
||||
void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
|
||||
{
|
||||
m_watchersWindow->setVisible(
|
||||
m_watchersWindow->model()->rowCount(QModelIndex()) > 0);
|
||||
m_returnWindow->setVisible(
|
||||
m_returnWindow->model()->rowCount(QModelIndex()) > 0);
|
||||
|
||||
QTC_ASSERT(engine, return);
|
||||
if (m_state == engine->state())
|
||||
return;
|
||||
|
||||
m_state = engine->state();
|
||||
bool actionsEnabled = DebuggerEngine::debuggerActionsEnabled(m_state);
|
||||
|
||||
@@ -2171,9 +2179,6 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
|
||||
theDebuggerAction(ExpandStack)->setEnabled(actionsEnabled);
|
||||
theDebuggerAction(ExecuteCommand)->setEnabled(m_state == InferiorStopped);
|
||||
|
||||
m_watchersWindow->setVisible(false);
|
||||
m_returnWindow->setVisible(false);
|
||||
|
||||
const bool notbusy = m_state == InferiorStopped
|
||||
|| m_state == DebuggerNotReady
|
||||
|| m_state == InferiorUnrunnable;
|
||||
@@ -2565,12 +2570,6 @@ void DebuggerPlugin::extensionsInitialized()
|
||||
//d->m_uiSwitcher->initialize();
|
||||
}
|
||||
|
||||
void DebuggerPlugin::updateWatchersWindow(bool showWatchers, bool showReturn)
|
||||
{
|
||||
d->m_watchersWindow->setVisible(showWatchers);
|
||||
d->m_returnWindow->setVisible(showReturn);
|
||||
}
|
||||
|
||||
QWidget *DebuggerPlugin::mainWindow() const
|
||||
{
|
||||
return d->m_uiSwitcher->mainWindow();
|
||||
|
||||
Reference in New Issue
Block a user