QmlDesigner: Promote visibility changes of item library items

Change-Id: Ie4b70a2785fbd9199a81ffaf879f521431aa609d
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
Marco Bubke
2014-06-23 17:19:48 +02:00
committed by Tim Jenssen
parent ca8ecce151
commit 44685b535d
3 changed files with 4 additions and 4 deletions

View File

@@ -112,6 +112,7 @@ ScrollView {
Repeater {
model: sectionEntries
delegate: ItemDelegate {
visible: itemVisible
width: styleConstants.cellWidth + itemGrid.flexibleWidth
height: styleConstants.cellHeight
}

View File

@@ -91,7 +91,7 @@ bool ItemLibrarySection::updateSectionVisibility(const QString &searchText, bool
if (itemVisible)
haveVisibleItems = true;
}
if (changed)
m_sectionEntries.resetModel();
emit sectionEntriesChanged();

View File

@@ -90,8 +90,7 @@ const QList<ItemLibraryItem *> &ItemLibrarySectionModel::items() const
void ItemLibrarySectionModel::resetModel()
{
beginResetModel();
endResetModel();
emit dataChanged(QModelIndex(), QModelIndex());
}
void ItemLibrarySectionModel::addRoleNames()