[vlc-devel] [PATCH 08/29] qml: expose contextButton visibility

Abel Tesfaye abeltesfaye45 at gmail.com
Tue Aug 20 12:42:25 CEST 2019


From: Abel Tesfaye <Abeltesfaye45 at gmail.com>

---
 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
+}
-- 
2.21.0



More information about the vlc-devel mailing list