diff options
author | Aurindam Jana <aurindam.jana@nokia.com> | 2012-03-14 11:58:31 +0100 |
---|---|---|
committer | Aurindam Jana <aurindam.jana@nokia.com> | 2012-03-14 13:55:15 +0100 |
commit | 6e0caec046d3b27e78665271959d9a2339a4fa53 (patch) | |
tree | 179cbc5b0779621c2bec7e651b8975b2b71def56 /src/plugins/debugger/qml/qmlv8debuggerclient.cpp | |
parent | 02da7db7e12a9b5faab40f6a2b58b65a5ec83f22 (diff) | |
download | qt-creator-6e0caec046d3b27e78665271959d9a2339a4fa53.tar.gz |
QmlDebugging: Assign Value in Debugger
Call EXEC instead of SET_PROPERTY for assigning a value
in Locals and Expressions. Also check if the id of the
object is valid before calling EXPAND.
Task-number: QTCREATORBUG-7089
Change-Id: I2769e5345cfb7ecf87e36125821f141821556690
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmlv8debuggerclient.cpp')
-rw-r--r-- | src/plugins/debugger/qml/qmlv8debuggerclient.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp index ee888af93e..1ce9aa8ff7 100644 --- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp +++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp @@ -1153,11 +1153,12 @@ void QmlV8DebuggerClient::synchronizeBreakpoints() //NOT USED } -void QmlV8DebuggerClient::assignValueInDebugger(const QByteArray /*expr*/, const quint64 &/*id*/, - const QString &property, const QString &value) +void QmlV8DebuggerClient::assignValueInDebugger(const WatchData * /*data*/, + const QString &expr, + const QVariant &valueV) { StackHandler *stackHandler = d->engine->stackHandler(); - QString expression = QString(_("%1 = %2;")).arg(property).arg(value); + QString expression = QString(_("%1 = %2;")).arg(expr).arg(valueV.toString()); if (stackHandler->isContentsValid() && stackHandler->currentFrame().isUsable()) { d->evaluate(expression, false, false, stackHandler->currentIndex()); } else { |