forked from qt-creator/qt-creator
QmlOutline: Treat grouped property items as properties
E.g. "anchors {}" is represented in the AST as a UiObjectDefinition.
Treat it nevertheless like a property in the outline, such that it
isn't shown in the outline if you deactivate showing bindings.
This commit is contained in:
@@ -44,8 +44,7 @@ bool QmlJSOutlineFilterModel::filterAcceptsRow(int sourceRow,
|
||||
if (m_filterBindings) {
|
||||
QModelIndex sourceIndex = sourceModel()->index(sourceRow, 0, sourceParent);
|
||||
QVariant itemType = sourceIndex.data(QmlOutlineModel::ItemTypeRole);
|
||||
Q_ASSERT(itemType.isValid());
|
||||
if (itemType.isValid() && itemType == QmlOutlineModel::PropertyType) {
|
||||
if (itemType == QmlOutlineModel::PropertyType) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user