[vlc-devel] [PATCH 25/29] qml: allow changing picture radius and play icon size of GridItem

Prince Gupta guptaprince8832 at gmail.com
Tue Aug 4 13:34:58 CEST 2020


---
 modules/gui/qt/widgets/qml/GridItem.qml   | 4 ++++
 modules/gui/qt/widgets/qml/MediaCover.qml | 1 +
 2 files changed, 5 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index 93407c7b7b..e74f6d553a 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -34,6 +34,8 @@ Item {
     property alias textHorizontalAlignment: subtitleTxt.horizontalAlignment
     property alias playCoverBorder: picture.playCoverBorder
     property alias playCoverOnlyBorders: picture.playCoverOnlyBorders
+    property alias playIconSize: picture.playIconSize
+    property alias pictureRadius: picture.radius
     property bool selected: false
 
     property alias progress: picture.progress
@@ -137,6 +139,8 @@ Item {
 
             /* background visible when selected */
             Rectangle {
+                id: selectionRect
+
                 x: - root.selectedBorderWidth
                 y: - root.selectedBorderWidth
                 width: layout.implicitWidth + ( root.selectedBorderWidth * 2 )
diff --git a/modules/gui/qt/widgets/qml/MediaCover.qml b/modules/gui/qt/widgets/qml/MediaCover.qml
index a0832962c2..9b06b2bb66 100644
--- a/modules/gui/qt/widgets/qml/MediaCover.qml
+++ b/modules/gui/qt/widgets/qml/MediaCover.qml
@@ -79,6 +79,7 @@ Widgets.RoundImage {
 
         anchors.fill: parent
         iconSize: VLCStyle.play_root_small
+        radius: root.radius
 
         onIconClicked: root.playIconClicked()
     }
-- 
2.25.1



More information about the vlc-devel mailing list