Commit 59bc13db authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.navigator: small fix

Do now show any dot properties in the Navigator
parent ebb8d825
...@@ -572,7 +572,8 @@ QStringList NavigatorTreeModel::visibleProperties(const ModelNode &node) const ...@@ -572,7 +572,8 @@ QStringList NavigatorTreeModel::visibleProperties(const ModelNode &node) const
QStringList propertyList; QStringList propertyList;
foreach (const QString &propertyName, node.metaInfo().propertyNames()) { foreach (const QString &propertyName, node.metaInfo().propertyNames()) {
if (node.metaInfo().propertyIsWritable(propertyName) && !m_hiddenProperties.contains(propertyName) && 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) &&
propertyName != node.metaInfo().defaultPropertyName()) { // TODO: ask the node instances propertyName != node.metaInfo().defaultPropertyName()) { // TODO: ask the node instances
QString qmlType = qmlTypeInQtContainer(node.metaInfo().propertyTypeName(propertyName)); 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