forked from qt-creator/qt-creator
QmlDesigner.MetaInfo: Adding propertyIsPrivate()
Change-Id: Ia78583b080ced996d98517ce5d3294d3040f8ceb Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -79,6 +79,7 @@ public:
|
||||
bool propertyIsWritable(const PropertyName &propertyName) const;
|
||||
bool propertyIsListProperty(const PropertyName &propertyName) const;
|
||||
bool propertyIsEnumType(const PropertyName &propertyName) const;
|
||||
bool propertyIsPrivate(const PropertyName &propertyName) const;
|
||||
QString propertyEnumScope(const PropertyName &propertyName) const;
|
||||
QStringList propertyKeysForEnum(const PropertyName &propertyName) const;
|
||||
QVariant propertyCastedValue(const PropertyName &propertyName, const QVariant &value) const;
|
||||
|
@@ -1129,6 +1129,11 @@ bool NodeMetaInfo::propertyIsEnumType(const PropertyName &propertyName) const
|
||||
return m_privateData->isPropertyEnum(propertyName);
|
||||
}
|
||||
|
||||
bool NodeMetaInfo::propertyIsPrivate(const PropertyName &propertyName) const
|
||||
{
|
||||
return propertyName.startsWith("__");
|
||||
}
|
||||
|
||||
QString NodeMetaInfo::propertyEnumScope(const PropertyName &propertyName) const
|
||||
{
|
||||
return m_privateData->propertyEnumScope(propertyName);
|
||||
|
Reference in New Issue
Block a user