forked from qt-creator/qt-creator
Debugger: Inline rarely used convienience function
Change-Id: Iad5db32af9adb90f5d191e4fdcd2be751bd2b412 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -63,7 +63,6 @@ DEBUGGER_EXPORT void showCannotStartDialog(const QString &toolName);
|
||||
DEBUGGER_EXPORT void enableMainWindow(bool on);
|
||||
|
||||
// Convenience functions.
|
||||
DEBUGGER_EXPORT void showStatusMessage(const QString &message, int timeoutMS = 10000);
|
||||
DEBUGGER_EXPORT void showPermanentStatusMessage(const QString &message);
|
||||
|
||||
DEBUGGER_EXPORT QAction *createStartAction();
|
||||
|
@@ -1740,7 +1740,7 @@ void DebuggerEngine::showMessage(const QString &msg, int channel, int timeout) c
|
||||
case StatusBar:
|
||||
d->m_logWindow->showInput(LogMisc, msg);
|
||||
d->m_logWindow->showOutput(LogMisc, msg);
|
||||
Debugger::showStatusMessage(msg, timeout);
|
||||
DebuggerMainWindow::showStatusMessage(msg, timeout);
|
||||
break;
|
||||
case LogMiscInput:
|
||||
d->m_logWindow->showInput(LogMisc, msg);
|
||||
|
@@ -2406,11 +2406,6 @@ void enableMainWindow(bool on)
|
||||
DebuggerMainWindow::instance()->setEnabled(on);
|
||||
}
|
||||
|
||||
void showStatusMessage(const QString &message, int timeoutMS)
|
||||
{
|
||||
DebuggerMainWindow::showStatusMessage(message, timeoutMS);
|
||||
}
|
||||
|
||||
void showPermanentStatusMessage(const QString &message)
|
||||
{
|
||||
DebuggerMainWindow::showStatusMessage(message, -1);
|
||||
|
@@ -23,6 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "debuggermainwindow.h"
|
||||
#include "debuggerruncontrol.h"
|
||||
#include "terminal.h"
|
||||
|
||||
@@ -701,9 +702,10 @@ void DebuggerRunTool::start()
|
||||
QString debuggerName = m_engine->objectName();
|
||||
if (m_engine2)
|
||||
debuggerName += ' ' + m_engine2->objectName();
|
||||
|
||||
const QString message = tr("Starting debugger \"%1\" for ABI \"%2\"...")
|
||||
.arg(debuggerName).arg(m_runParameters.toolChainAbi.toString());
|
||||
showStatusMessage(message);
|
||||
DebuggerMainWindow::showStatusMessage(message, 10000);
|
||||
|
||||
showMessage(m_engine->formatStartParameters(), LogDebug);
|
||||
showMessage(DebuggerSettings::dump(), LogDebug);
|
||||
|
Reference in New Issue
Block a user