forked from qt-creator/qt-creator
Fixed regression when assigning an object binding to an array property.
This commit is contained in:
@@ -187,6 +187,9 @@ public:
|
||||
|
||||
QString typeName() const
|
||||
{ return m_type; }
|
||||
|
||||
bool isList() const
|
||||
{ return m_isList; }
|
||||
};
|
||||
|
||||
class FakeMetaObject {
|
||||
@@ -859,6 +862,15 @@ QString QmlObjectValue::propertyType(const QString &propertyName) const
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool QmlObjectValue::isListProperty(const QString &name) const
|
||||
{
|
||||
int idx = _metaObject->propertyIndex(name);
|
||||
if (idx == -1)
|
||||
return false;
|
||||
FakeMetaProperty prop = _metaObject->property(idx);
|
||||
return prop.isList();
|
||||
}
|
||||
|
||||
bool QmlObjectValue::isEnum(const QString &typeName) const
|
||||
{
|
||||
return _metaObject->enumeratorIndex(typeName) != -1;
|
||||
|
Reference in New Issue
Block a user