[vlc-commits] qml: allow changing picture radius and play icon size of GridItem

Prince Gupta git at videolan.org
Mon Aug 10 12:09:51 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jul 24 17:36:21 2020 +0530| [9f2491e5858f395578b460517202dc0671df4312] | committer: Pierre Lamot

qml: allow changing picture radius and play icon size of GridItem

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

 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()
     }



More information about the vlc-commits mailing list