forked from qt-creator/qt-creator
QmlDesigner.Navigator: Do not show private properties
Change-Id: Iaa8588b000c8d936d98517ce5d3294d3040f8cbb Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -618,6 +618,7 @@ PropertyNameList NavigatorTreeModel::visibleProperties(const ModelNode &node) co
|
||||
if (!propertyName.contains('.') && //do not show any dot properties, since they are tricky and unlikely to make sense
|
||||
node.metaInfo().propertyIsWritable(propertyName) && !m_hiddenProperties.contains(propertyName) &&
|
||||
!node.metaInfo().propertyIsEnumType(propertyName) && //Some enums have the same name as Qml types (e. g. Flow)
|
||||
!node.metaInfo().propertyIsPrivate(propertyName) && //Do not show private properties
|
||||
propertyName != node.metaInfo().defaultPropertyName()) { // TODO: ask the node instances
|
||||
|
||||
TypeName qmlType = qmlTypeInQtContainer(node.metaInfo().propertyTypeName(propertyName));
|
||||
|
Reference in New Issue
Block a user