QmlDesigner: Show correct file structure in AssetsLibrary when empty

Fixes: QDS-14099
Change-Id: I4e5962efa7e934913d339e914e1f41013f6614ee
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
This commit is contained in:
Shrief Gabr
2024-11-21 10:38:04 +02:00
parent b7265a6ca3
commit 3051338202
2 changed files with 2 additions and 0 deletions

View File

@@ -278,6 +278,7 @@ Item {
AssetsView { AssetsView {
id: assetsView id: assetsView
visible: !assetsModel.isEmpty
width: parent.width width: parent.width
height: parent.height - assetsView.y height: parent.height - assetsView.y

View File

@@ -10,6 +10,7 @@ import AssetsLibraryBackend
TreeView { TreeView {
id: root id: root
clip: true clip: true
interactive: verticalScrollBar.visible && !root.contextMenu.opened && !rootView.isDragging interactive: verticalScrollBar.visible && !root.contextMenu.opened && !rootView.isDragging
reuseItems: false reuseItems: false