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

QmlDesigner: Fix section visibility



Change-Id: Ic663e7f8aa8916bb7531c1a2da05e6b2b45bfcb9
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 44685b53
......@@ -242,8 +242,6 @@ ItemLibrarySection *ItemLibraryModel::sectionByName(const QString &sectionName)
void ItemLibraryModel::updateVisibility()
{
beginResetModel();
endResetModel();
bool changed = false;
foreach (ItemLibrarySection *itemLibrarySection, m_sectionModels) {
......
......@@ -40,7 +40,7 @@ class ItemLibrarySection: public QObject {
Q_PROPERTY(QObject* sectionEntries READ sectionEntries NOTIFY sectionEntriesChanged FINAL)
Q_PROPERTY(QString sectionName READ sectionName FINAL)
Q_PROPERTY(QString visible READ isVisible NOTIFY visibilityChanged FINAL)
Q_PROPERTY(bool sectionVisible READ isVisible NOTIFY visibilityChanged FINAL)
Q_PROPERTY(bool sectionExpanded READ sectionExpanded FINAL)
Q_PROPERTY(QVariant sortingRole READ sortingRole FINAL)
......
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