aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml')
-rw-r--r--share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
index 6a17a98a9d3..6483ebdd6bd 100644
--- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
+++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
@@ -32,7 +32,7 @@ HelperWidgets.ScrollView {
for (let i = 0; i < categoryRepeater.count; ++i) {
let cat = categoryRepeater.itemAt(i)
if (cat.visible && !cat.expanded)
- cat.expanded = true
+ cat.expandSection()
}
}
@@ -58,6 +58,10 @@ HelperWidgets.ScrollView {
expandOnClick: false
onToggleExpand: bundleCategoryExpanded = !bundleCategoryExpanded
+ function expandSection() {
+ bundleCategoryExpanded = true
+ }
+
Grid {
width: root.width
leftPadding: 5