forked from qt-creator/qt-creator
debugger: remove unneeded DebuggerPlugin::state() fucntion
This commit is contained in:
@@ -2672,11 +2672,6 @@ void DebuggerPlugin::exitDebugger()
|
|||||||
d->exitDebugger();
|
d->exitDebugger();
|
||||||
}
|
}
|
||||||
|
|
||||||
int DebuggerPlugin::state() const
|
|
||||||
{
|
|
||||||
return d->state();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggerPlugin::createNewDock(QWidget *widget)
|
void DebuggerPlugin::createNewDock(QWidget *widget)
|
||||||
{
|
{
|
||||||
QDockWidget *dockWidget =
|
QDockWidget *dockWidget =
|
||||||
@@ -2717,7 +2712,7 @@ bool DebuggerPlugin::coreAboutToClose()
|
|||||||
// FIXME: Iterate over all running debuggers.
|
// FIXME: Iterate over all running debuggers.
|
||||||
// Ask to terminate the session.
|
// Ask to terminate the session.
|
||||||
bool cleanTermination = false;
|
bool cleanTermination = false;
|
||||||
switch (state()) {
|
switch (d->state()) {
|
||||||
case DebuggerNotReady:
|
case DebuggerNotReady:
|
||||||
case DebuggerFinished:
|
case DebuggerFinished:
|
||||||
case InferiorUnrunnable:
|
case InferiorUnrunnable:
|
||||||
@@ -2753,11 +2748,12 @@ bool DebuggerPlugin::coreAboutToClose()
|
|||||||
"Terminating the session in the current"
|
"Terminating the session in the current"
|
||||||
" state (%1) can leave the target in an inconsistent state."
|
" state (%1) can leave the target in an inconsistent state."
|
||||||
" Would you still like to terminate it?")
|
" Would you still like to terminate it?")
|
||||||
.arg(_(DebuggerEngine::stateName(state())));
|
.arg(_(DebuggerEngine::stateName(d->state())));
|
||||||
|
|
||||||
const QString title
|
const QString title
|
||||||
= QCoreApplication::translate("Debugger::Internal::DebuggerListener",
|
= QCoreApplication::translate("Debugger::Internal::DebuggerListener",
|
||||||
"Close Debugging Session"); QMessageBox::StandardButton answer =
|
"Close Debugging Session");
|
||||||
|
QMessageBox::StandardButton answer =
|
||||||
QMessageBox::question(DebuggerUISwitcher::instance()->mainWindow(),
|
QMessageBox::question(DebuggerUISwitcher::instance()->mainWindow(),
|
||||||
title, question,
|
title, question,
|
||||||
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
|
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ public:
|
|||||||
const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
|
const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
|
||||||
|
|
||||||
QIcon locationMarkIcon() const;
|
QIcon locationMarkIcon() const;
|
||||||
int state() const; // Last reported state of last active engine.
|
|
||||||
bool isReverseDebugging() const;
|
bool isReverseDebugging() const;
|
||||||
void createNewDock(QWidget *widget);
|
void createNewDock(QWidget *widget);
|
||||||
void runControlStarted(DebuggerRunControl *runControl);
|
void runControlStarted(DebuggerRunControl *runControl);
|
||||||
|
|||||||
Reference in New Issue
Block a user