[vlc-commits] qml: expose contextButton visibility

Abel Tesfaye git at videolan.org
Wed Aug 21 15:08:44 CEST 2019


vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Tue Aug  6 12:44:53 2019 +0300| [b5a26ae65d8779b468aae1d7eb58538e69968417] | committer: Jean-Baptiste Kempf

qml: expose contextButton visibility

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

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

 modules/gui/qt/qml/utils/GridItem.qml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/qml/utils/GridItem.qml b/modules/gui/qt/qml/utils/GridItem.qml
index da354570e9..5e3039d59d 100644
--- a/modules/gui/qt/qml/utils/GridItem.qml
+++ b/modules/gui/qt/qml/utils/GridItem.qml
@@ -35,6 +35,7 @@ Rectangle {
     property bool selected: false
     property int shiftX: 0
     property bool noActionButtons: false
+    property bool showContextButton: isVideo
 
     property alias sourceSize: cover.sourceSize
     property string infoLeft: ""
@@ -218,7 +219,7 @@ Rectangle {
                     }
                     ContextButton {
                         id: contextButton
-                        visible: isVideo
+                        visible: root.showContextButton
                         anchors {
                             top: cover.top
                             right: cover.right
@@ -448,4 +449,4 @@ Rectangle {
 
         }
     }
-}
\ No newline at end of file
+}



More information about the vlc-commits mailing list