Commit e6325373 authored by hjk's avatar hjk
Browse files

debugger: move a slot to DebuggerEnginePrivate

parent 3ff18381
......@@ -268,6 +268,11 @@ public slots:
QTimer::singleShot(0, this, SLOT(doFinishDebugger()));
}
void raiseApplication() {
m_runControl->bringApplicationToForeground(m_inferiorPid);
}
public:
DebuggerState state() const { return m_state; }
......@@ -1365,7 +1370,7 @@ void DebuggerEngine::notifyInferiorPid(qint64 pid)
if (d->m_inferiorPid == pid)
return;
d->m_inferiorPid = pid;
QTimer::singleShot(0, this, SLOT(raiseApplication()));
QTimer::singleShot(0, d, SLOT(raiseApplication()));
}
qint64 DebuggerEngine::inferiorPid() const
......@@ -1378,11 +1383,6 @@ DebuggerPlugin *DebuggerEngine::plugin() const
return DebuggerPlugin::instance();
}
void DebuggerEngine::raiseApplication()
{
d->m_runControl->bringApplicationToForeground(d->m_inferiorPid);
}
void DebuggerEngine::openFile(const QString &fileName, int lineNumber)
{
plugin()->gotoLocation(fileName, lineNumber, false);
......
......@@ -251,7 +251,6 @@ public:
void openFile(const QString &fileName, int lineNumber = -1);
void gotoLocation(const QString &fileName, int lineNumber, bool setMarker);
void gotoLocation(const StackFrame &frame, bool setMarker);
Q_SLOT void raiseApplication();
virtual void quitDebugger(); // called by DebuggerRunControl
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment