Fix QML watch expressions for v8

Fix syncing of watch expressions with Qt Quick 2. For v8/v4 we're
utilizing the 'evaluate' command, which we have to re-send on every
change to get updates. We therefore now call synchronizeWatchers()
whenever the stack changes.

Task-number: QTCREATORBUG-13473
Change-Id: I7356e9518a719839c5cbb6e518be18e665078e85
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
This commit is contained in:
Kai Koehne
2014-11-21 16:58:39 +01:00
committed by Kai Koehne
parent 245ea90817
commit 47f9622e72
2 changed files with 6 additions and 10 deletions

View File

@@ -1176,6 +1176,8 @@ void QmlEngine::updateCurrentContext()
context = grandParentData->name;
}
synchronizeWatchers();
QmlJS::ConsoleManagerInterface *consoleManager = qmlConsoleManager();
if (consoleManager)
consoleManager->setContext(tr("Context:") + QLatin1Char(' ') + context);