Commit 6a6d9dac authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.navigator: fixes shown properties

Some enums have the same typname as QDeclarative items.
We have to check for this case.
parent 417d45bb
......@@ -574,6 +574,7 @@ QStringList NavigatorTreeModel::visibleProperties(const ModelNode &node) const
foreach (const QString &propertyName, node.metaInfo().propertyNames()) {
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)
propertyName != node.metaInfo().defaultPropertyName()) { // TODO: ask the node instances
QString qmlType = qmlTypeInQtContainer(node.metaInfo().propertyTypeName(propertyName));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment