[vlc-commits] QML: display a message when no network shares has been found

Adrien Maglo git at videolan.org
Mon Jul 15 11:26:38 CEST 2019


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Jun 26 11:21:38 2019 +0200| [b0e88876356ad3d5f4f138941df6e98ff08a190b] | committer: Jean-Baptiste Kempf

QML: display a message when no network shares has been found

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0e88876356ad3d5f4f138941df6e98ff08a190b
---

 modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
index 15362d7564..1f58c17ef8 100644
--- a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
@@ -111,4 +111,12 @@ Utils.NavigableFocusScope {
         onActionUp: root.actionUp(index)
         onActionCancel: root.actionCancel(index)
     }
+
+    Label {
+        anchors.centerIn: parent
+        visible: delegateModel.items.count === 0
+        font.pixelSize: VLCStyle.fontHeight_xxlarge
+        color: root.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.text
+        text: qsTr("No network shares found")
+    }
 }



More information about the vlc-commits mailing list