forked from qt-creator/qt-creator
QmlJSInspector: Set property values
QML property values could be set in the inspector.
Regression introduced by 7f09d0b756.
This patch is a partial fix. Only values can be assigned currently.
For expressions, use the console.
Change-Id: I945b11109cd7788dd0f5277af206bf9658844aee
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -989,10 +989,11 @@ bool QmlEngine::setToolTipExpression(const QPoint &mousePos,
|
||||
void QmlEngine::assignValueInDebugger(const WatchData *data,
|
||||
const QString &expression, const QVariant &valueV)
|
||||
{
|
||||
if (!expression.isEmpty() && m_adapter.activeDebuggerClient()) {
|
||||
m_adapter.activeDebuggerClient()->assignValueInDebugger(data,
|
||||
expression,
|
||||
valueV);
|
||||
if (!expression.isEmpty()) {
|
||||
if (data->isInspect() && m_inspectorAdapter.agent())
|
||||
m_inspectorAdapter.agent()->assignValue(data, expression, valueV);
|
||||
else if (m_adapter.activeDebuggerClient())
|
||||
m_adapter.activeDebuggerClient()->assignValueInDebugger(data, expression, valueV);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user