forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user