debugger: encapsulate part of the startup logic in the base class

This commit is contained in:
hjk
2010-07-08 14:26:35 +02:00
parent e721b9f70f
commit 85243e19a9
8 changed files with 46 additions and 44 deletions

View File

@@ -251,18 +251,13 @@ void QmlEngine::startEngine()
m_proc.start(sp.executable, sp.processArgs);
if (!m_proc.waitForStarted()) {
setState(EngineStartFailed);
startFailed();
notifyEngineStartFailed();
return;
}
#endif
setState(EngineStarted);
startSuccessful();
setState(InferiorStarting);
notifyEngineStarted();
//m_frameRate = new CanvasFrameRate(0);
//m_frameRate->show();
setState(InferiorRunning);
}
void QmlEngine::setupConnection()
@@ -300,12 +295,12 @@ void QmlEngine::setupConnection()
if (!m_conn->waitForConnected()) {
qDebug() << "CONNECTION FAILED";
setState(InferiorStartFailed);
startFailed();
notifyEngineStartFailed();
return;
}
#endif
notifyEngineStarted();
qDebug() << "CONNECTION SUCCESSFUL";
setState(InferiorRunningRequested);
setState(InferiorRunning);