Debugger: Split updateWatchData() paths

There are two cases that do not coincide in asynchronous
engines such as the QmlEngine: Inserting a new watch item,
and expanding the children of an existing item.

Change-Id: Ic98a5f1e89aca37146039a241de737c407606e83
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-07-15 17:14:29 +02:00
parent 66964ac91c
commit 63c5fc034b
10 changed files with 38 additions and 26 deletions

View File

@@ -114,12 +114,12 @@ bool QmlCppEngine::canHandleToolTip(const DebuggerToolTipContext &ctx) const
return success;
}
void QmlCppEngine::updateWatchData(const QByteArray &iname)
void QmlCppEngine::updateItem(const QByteArray &iname)
{
if (iname.startsWith("inspect."))
m_qmlEngine->updateWatchData(iname);
m_qmlEngine->updateItem(iname);
else
m_activeEngine->updateWatchData(iname);
m_activeEngine->updateItem(iname);
}
void QmlCppEngine::selectWatchData(const QByteArray &iname)