forked from qt-creator/qt-creator
QML Debugger: fix the fact that the qmlobserver would only run once.
This commit is contained in:
@@ -126,9 +126,7 @@ void QmlEngine::shutdownInferior()
|
|||||||
void QmlEngine::shutdownEngine()
|
void QmlEngine::shutdownEngine()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
|
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
|
||||||
//m_objectTreeWidget->saveSettings(m_settings);
|
notifyEngineShutdownOk();
|
||||||
//m_propertiesWidget->saveSettings(m_settings);
|
|
||||||
//m_settings.saveSettings(Core::ICore::instance()->settings());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const int serverPort = 3768;
|
const int serverPort = 3768;
|
||||||
@@ -138,7 +136,6 @@ void QmlEngine::setupEngine()
|
|||||||
notifyEngineSetupOk();
|
notifyEngineSetupOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void QmlEngine::continueInferior()
|
void QmlEngine::continueInferior()
|
||||||
{
|
{
|
||||||
QTC_ASSERT(state() == InferiorStopOk, qDebug() << state());
|
QTC_ASSERT(state() == InferiorStopOk, qDebug() << state());
|
||||||
@@ -518,6 +515,12 @@ void QmlEngine::messageReceived(const QByteArray &message)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QmlEngine::disconnected()
|
||||||
|
{
|
||||||
|
notifyInferiorExited();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Debugger
|
} // namespace Debugger
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,9 @@ public:
|
|||||||
explicit QmlEngine(const DebuggerStartParameters &startParameters);
|
explicit QmlEngine(const DebuggerStartParameters &startParameters);
|
||||||
~QmlEngine();
|
~QmlEngine();
|
||||||
|
|
||||||
|
public slots:
|
||||||
void messageReceived(const QByteArray &message);
|
void messageReceived(const QByteArray &message);
|
||||||
|
void disconnected();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// DebuggerEngine implementation
|
// DebuggerEngine implementation
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ DebuggerClient::DebuggerClient(QDeclarativeDebugConnection* client)
|
|||||||
//engine->startSuccessful(); // FIXME: AAA: port to new debugger states
|
//engine->startSuccessful(); // FIXME: AAA: port to new debugger states
|
||||||
|
|
||||||
connect(engine, SIGNAL(sendMessage(QByteArray)), this, SLOT(slotSendMessage(QByteArray)));
|
connect(engine, SIGNAL(sendMessage(QByteArray)), this, SLOT(slotSendMessage(QByteArray)));
|
||||||
|
connect(connection, SIGNAL(disconnected()), engine, SLOT(disconnected()));
|
||||||
setEnabled(true);
|
setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user