From 3f084fa026a8a402583a91ef7882d49a24629542 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 16 Jul 2015 13:45:43 +0200 Subject: [PATCH] Debugger: Split update/expand paths also in mixed engine Change-Id: Ic341e4a3e974cfde3fbf4afd8cef41080b922067 Reviewed-by: Christian Stenger --- src/plugins/debugger/qml/qmlcppengine.cpp | 8 ++++++++ src/plugins/debugger/qml/qmlcppengine.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp index 7248d7846c6..a4277005120 100644 --- a/src/plugins/debugger/qml/qmlcppengine.cpp +++ b/src/plugins/debugger/qml/qmlcppengine.cpp @@ -122,6 +122,14 @@ void QmlCppEngine::updateItem(const QByteArray &iname) m_activeEngine->updateItem(iname); } +void QmlCppEngine::expandItem(const QByteArray &iname) +{ + if (iname.startsWith("inspect.")) + m_qmlEngine->expandItem(iname); + else + m_activeEngine->expandItem(iname); +} + void QmlCppEngine::selectWatchData(const QByteArray &iname) { if (iname.startsWith("inspect.")) diff --git a/src/plugins/debugger/qml/qmlcppengine.h b/src/plugins/debugger/qml/qmlcppengine.h index b0260a6d710..3b2ecc9137f 100644 --- a/src/plugins/debugger/qml/qmlcppengine.h +++ b/src/plugins/debugger/qml/qmlcppengine.h @@ -49,6 +49,7 @@ public: bool canDisplayTooltip() const; bool canHandleToolTip(const DebuggerToolTipContext &) const; void updateItem(const QByteArray &iname); + void expandItem(const QByteArray &iname); void selectWatchData(const QByteArray &iname); void watchPoint(const QPoint &);