aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2022-12-09 14:52:35 +0200
committerTim Jenssen <tim.jenssen@qt.io>2022-12-12 14:09:39 +0000
commit7383a311d745cd335d8223b644ab1b03ca09ebc5 (patch)
tree24c6a40c02a3b5eb93a61912ab2408850837561b
parentd59e35af1ade684b188c21744b6902a74b9be855 (diff)
QmlDesigner: Fix expand all and collapse all in content library
(cherry picked from commit df622c9c3cb22268c0d21bfcecb8f5be9590afa8) Fixes: QDS-8413 Change-Id: I98931c52f63bbbfd7a42e522a762d77b469df5da Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml2
-rw-r--r--share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml2
2 files changed, 4 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
index 57c507c3ff..50c0336a48 100644
--- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
+++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml
@@ -61,6 +61,8 @@ HelperWidgets.ScrollView {
expanded: bundleCategoryExpanded
expandOnClick: false
onToggleExpand: bundleCategoryExpanded = !bundleCategoryExpanded
+ onExpand: bundleCategoryExpanded = true
+ onCollapse: bundleCategoryExpanded = false
function expandSection() {
bundleCategoryExpanded = true
diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml
index b80ef7471a..c17dcd3a6f 100644
--- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml
+++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryTexturesView.qml
@@ -57,6 +57,8 @@ HelperWidgets.ScrollView {
expanded: bundleCategoryExpanded
expandOnClick: false
onToggleExpand: bundleCategoryExpanded = !bundleCategoryExpanded
+ onExpand: bundleCategoryExpanded = true
+ onCollapse: bundleCategoryExpanded = false
function expandSection() {
bundleCategoryExpanded = true