Commit 44685b53 authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen
Browse files

QmlDesigner: Promote visibility changes of item library items



Change-Id: Ie4b70a2785fbd9199a81ffaf879f521431aa609d
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent ca8ecce1
......@@ -112,6 +112,7 @@ ScrollView {
Repeater {
model: sectionEntries
delegate: ItemDelegate {
visible: itemVisible
width: styleConstants.cellWidth + itemGrid.flexibleWidth
height: styleConstants.cellHeight
}
......
......@@ -91,8 +91,8 @@ bool ItemLibrarySection::updateSectionVisibility(const QString &searchText, bool
if (itemVisible)
haveVisibleItems = true;
}
m_sectionEntries.resetModel();
if (changed)
m_sectionEntries.resetModel();
emit sectionEntriesChanged();
......
......@@ -90,8 +90,7 @@ const QList<ItemLibraryItem *> &ItemLibrarySectionModel::items() const
void ItemLibrarySectionModel::resetModel()
{
beginResetModel();
endResetModel();
emit dataChanged(QModelIndex(), QModelIndex());
}
void ItemLibrarySectionModel::addRoleNames()
......
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