forked from qt-creator/qt-creator
QmlJSPropertyInspector: Change property value
Check if the expression is a literal when calling setBinding() Change-Id: Iab9d8d090a232a836c5929ac4cadc50310a20aa1 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
aa4c3f2332
commit
305ebd9fcc
@@ -696,10 +696,11 @@ void InspectorUi::selectItems(const QList<int> &objectIds)
|
||||
selectItems(objectReferences);
|
||||
}
|
||||
|
||||
void InspectorUi::changePropertyValue(int debugId,const QString &propertyName, const QString &valueExpression)
|
||||
void InspectorUi::changePropertyValue(int debugId, const QString &propertyName,
|
||||
const QString &valueExpression, bool isLiteral)
|
||||
{
|
||||
QmlDebugObjectReference obj = m_clientProxy->objectReferenceForId(debugId);
|
||||
m_clientProxy->setBindingForObject(debugId, propertyName, valueExpression, false,
|
||||
m_clientProxy->setBindingForObject(debugId, propertyName, valueExpression, isLiteral,
|
||||
obj.source().url().toString(), obj.source().lineNumber());
|
||||
}
|
||||
|
||||
@@ -901,8 +902,8 @@ void InspectorUi::disableLivePreview()
|
||||
|
||||
void InspectorUi::connectSignals()
|
||||
{
|
||||
connect(m_propertyInspector, SIGNAL(changePropertyValue(int,QString,QString)),
|
||||
this, SLOT(changePropertyValue(int,QString,QString)));
|
||||
connect(m_propertyInspector, SIGNAL(changePropertyValue(int,QString,QString,bool)),
|
||||
this, SLOT(changePropertyValue(int,QString,QString,bool)));
|
||||
|
||||
connect(m_clientProxy, SIGNAL(propertyChanged(int,QByteArray,QVariant)),
|
||||
m_propertyInspector, SLOT(propertyValueChanged(int,QByteArray,QVariant)));
|
||||
|
||||
Reference in New Issue
Block a user