From 7383a311d745cd335d8223b644ab1b03ca09ebc5 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 9 Dec 2022 14:52:35 +0200 Subject: [PATCH] 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 --- .../contentLibraryQmlSource/ContentLibraryMaterialsView.qml | 2 ++ .../contentLibraryQmlSource/ContentLibraryTexturesView.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryMaterialsView.qml index 57c507c3ff1..50c0336a483 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 b80ef7471ae..c17dcd3a6fb 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