summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlcppengine.cpp
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2012-02-23 12:33:04 +0100
committerAurindam Jana <aurindam.jana@nokia.com>2012-02-23 14:05:34 +0100
commit1cd4ae9488dfcfb6caa264309d754d1b45978115 (patch)
tree88f8a8bacd9ad4dc25c8a90b57661b48ab5b33a8 /src/plugins/debugger/qml/qmlcppengine.cpp
parentb809e805aa4fc7673ce1dd7e8c47563db869634b (diff)
downloadqt-creator-1cd4ae9488dfcfb6caa264309d754d1b45978115.tar.gz
QmlCppDebugger: Implement notifyInferiorIll()
Change-Id: I6d2091fff62eb0dabceda4da4eb49d2f63f99484 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmlcppengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlcppengine.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp
index 17a820b0bd..fbc7c1f78b 100644
--- a/src/plugins/debugger/qml/qmlcppengine.cpp
+++ b/src/plugins/debugger/qml/qmlcppengine.cpp
@@ -317,6 +317,19 @@ void QmlCppEngine::assignValueInDebugger(const WatchData *data,
d->m_activeEngine->assignValueInDebugger(data, expr, value);
}
+void QmlCppEngine::notifyInferiorIll()
+{
+ //This will eventually shutdown the engine
+ //Set final state to avoid quitDebugger() being called
+ //after this call
+ setTargetState(DebuggerFinished);
+
+ //Call notifyInferiorIll of cpp engine
+ //as qml engine will follow state transitions
+ //of cpp engine
+ d->m_cppEngine->notifyInferiorIll();
+}
+
void QmlCppEngine::detachDebugger()
{
d->m_qmlEngine->detachDebugger();