forked from qt-creator/qt-creator
QmlJSInspector: Property Inspector
Call "SET BINDING" instead of "EVALUATE" when setting values in the property inspector. This solves problems related to setting of some property types such as URLs. Change-Id: I256aef7db52b2e029d2b8ad6d17723eb1c46006f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
56e17e53c2
commit
d219cd2660
@@ -700,8 +700,9 @@ void InspectorUi::selectItems(const QList<int> &objectIds)
|
||||
|
||||
void InspectorUi::changePropertyValue(int debugId,const QString &propertyName, const QString &valueExpression)
|
||||
{
|
||||
QString query = propertyName + '=' + valueExpression;
|
||||
m_clientProxy->queryExpressionResult(debugId, query);
|
||||
QmlDebugObjectReference obj = m_clientProxy->objectReferenceForId(debugId);
|
||||
m_clientProxy->setBindingForObject(debugId, propertyName, valueExpression, false,
|
||||
obj.source().url().toString(), obj.source().lineNumber());
|
||||
}
|
||||
|
||||
void InspectorUi::enable()
|
||||
|
||||
Reference in New Issue
Block a user