forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user