[vlc-devel] [PATCH 39/39] qml: hide grid button for Music tracks list view
Prince Gupta
guptaprince8832 at gmail.com
Thu Jan 7 11:50:35 UTC 2021
---
modules/gui/qt/medialibrary/qml/MusicDisplay.qml | 2 ++
modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml | 1 +
2 files changed, 3 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/MusicDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicDisplay.qml
index 5dc10cd8d8..3880a03016 100644
--- a/modules/gui/qt/medialibrary/qml/MusicDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicDisplay.qml
@@ -32,6 +32,7 @@ Widgets.PageLoader {
property var sortModel
property var contentModel
+ property bool isViewMultiView: true
defaultPage: "artists"
pageModel: [{
@@ -56,6 +57,7 @@ Widgets.PageLoader {
onCurrentItemChanged: {
sortModel = currentItem.sortModel
contentModel = currentItem.model
+ isViewMultiView = currentItem.isViewMultiView === undefined || currentItem.isViewMultiView
}
function loadIndex(index) {
diff --git a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
index 469c4af954..ed395dba00 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
@@ -28,6 +28,7 @@ Widgets.NavigableFocusScope {
property alias sortModel: tracklistdisplay_id.sortModel
property alias model: tracklistdisplay_id.model
property alias selectionModel: tracklistdisplay_id.selectionDelegateModel
+ readonly property bool isViewMultiView: false
Widgets.DragItem {
id: trackDragItem
--
2.25.1
More information about the vlc-devel
mailing list