[vlc-commits] qml: hide PlayerButtonsLayout when model rowCount is 0

Fatih Uzunoglu git at videolan.org
Mon Nov 16 10:04:12 CET 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Aug 14 16:14:08 2020 +0300| [c1e8af25aa3d58c6bb8aba60e63e9a80614ea3db] | committer: Pierre Lamot

qml: hide PlayerButtonsLayout when model rowCount is 0

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/player/qml/PlayerButtonsLayout.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/player/qml/PlayerButtonsLayout.qml b/modules/gui/qt/player/qml/PlayerButtonsLayout.qml
index f51a12e99d..1a49750fdd 100644
--- a/modules/gui/qt/player/qml/PlayerButtonsLayout.qml
+++ b/modules/gui/qt/player/qml/PlayerButtonsLayout.qml
@@ -35,6 +35,8 @@ Widgets.NavigableFocusScope {
     implicitWidth: buttonrow.implicitWidth
     implicitHeight: buttonrow.implicitHeight
 
+    visible: model.count > 0
+
     Keys.priority: Keys.AfterItem
     Keys.onPressed: {
         if (!event.accepted)



More information about the vlc-commits mailing list