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:
Kai Koehne
2010-07-22 10:12:04 +02:00
parent 39b1bb8bd4
commit 40e36e0cd0
2 changed files with 18 additions and 11 deletions

View File

@@ -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;
}
}