[vlc-commits] qml: make MLFolderSettings instantiable from ml maindisplay
Pierre Lamot
git at videolan.org
Thu Feb 20 13:56:54 CET 2020
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Fri Feb 14 10:30:52 2020 +0100| [51adabad11643546ceee04599b27767a70863152] | committer: Jean-Baptiste Kempf
qml: make MLFolderSettings instantiable from ml maindisplay
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51adabad11643546ceee04599b27767a70863152
---
modules/gui/qt/medialibrary/qml/MainDisplay.qml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index 30800d64b5..96b5a9fd70 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -85,20 +85,27 @@ Widgets.NavigableFocusScope {
readonly property var pageModel: [
{
+ listed: true,
displayText: i18n.qtr("Video"),
icon: VLCIcons.topbar_video,
name: "video",
url: "qrc:///medialibrary/VideoDisplay.qml"
}, {
+ listed: true,
displayText: i18n.qtr("Music"),
icon: VLCIcons.topbar_music,
name: "music",
url: "qrc:///medialibrary/MusicDisplay.qml"
}, {
+ listed: true,
displayText: i18n.qtr("Network"),
icon: VLCIcons.topbar_network,
name: "network",
url: "qrc:///network/NetworkDisplay.qml"
+ }, {
+ listed: false,
+ name: "mlsettings",
+ url: "qrc:///medialibrary/MLFoldersSettings.qml"
}
]
@@ -106,6 +113,8 @@ Widgets.NavigableFocusScope {
id: tabModelid
Component.onCompleted: {
pageModel.forEach(function(e) {
+ if (!e.listed)
+ return
append({
displayText: e.displayText,
icon: e.icon,
More information about the vlc-commits
mailing list