aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2024-04-17 13:07:56 +0300
committerMahmoud Badri <mahmoud.badri@qt.io>2024-04-18 13:20:15 +0000
commitad408553af7d3e40dacb28298d9b4e7a74ea3761 (patch)
treef56dc27f72b616a05259b183082b64a026038d69 /share/qtcreator
parentc709e6d5552c734e795b61090288a81abc6321ed (diff)
QmlDesigner: Enable expanding content library user categories
Change-Id: Id3b49773b02e4922a06b71e6ed7a7098ed4d4062 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml10
1 files changed, 2 insertions, 8 deletions
diff --git a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml
index 47d3c6ce77..85123af374 100644
--- a/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml
+++ b/share/qtcreator/qmldesigner/contentLibraryQmlSource/ContentLibraryUserView.qml
@@ -73,16 +73,10 @@ HelperWidgets.ScrollView {
caption: categoryName
visible: categoryVisible
- expanded: categoryExpanded
- expandOnClick: false
category: "ContentLib_User"
- onToggleExpand: categoryExpanded = !categoryExpanded
- onExpand: categoryExpanded = true
- onCollapse: categoryExpanded = false
-
function expandSection() {
- categoryExpanded = true
+ section.expanded = true
}
property alias count: repeater.count
@@ -123,7 +117,7 @@ HelperWidgets.ScrollView {
roleValue: "texture"
delegate: ContentLibraryTexture {
width: root.cellWidth
- height: root.cellHeight
+ height: root.cellWidth // for textures use a square size since there is no name row
// onShowContextMenu: ctxMenu.popupMenu(modelData) // TODO
}