[vlc-commits] qml: make 'selectedBorderWidth' property of GridItem public

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


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Jul 23 00:26:54 2020 +0530| [efd1759ddd3dddfb0c4fdb85d40b6cdd00411678] | committer: Pierre Lamot

qml: make 'selectedBorderWidth' property of GridItem public

this property correspondes to extra width from all direction the Item will take when selected

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

 modules/gui/qt/widgets/qml/GridItem.qml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index a3c3c07c3b..929216e9b2 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -58,7 +58,7 @@ Item {
 
     readonly property bool _highlighted: mouseArea.containsMouse || content.activeFocus
 
-    readonly property int _selectedBorderWidth: VLCStyle.column_margin_width - ( VLCStyle.margin_small * 2 )
+    readonly property int selectedBorderWidth: VLCStyle.column_margin_width - ( VLCStyle.margin_small * 2 )
 
     property alias _primaryShadowVerticalOffset: primaryShadow.verticalOffset
     property alias _primaryShadowRadius: primaryShadow.radius
@@ -136,10 +136,10 @@ Item {
 
             /* background visible when selected */
             Rectangle {
-                x: - root._selectedBorderWidth
-                y: - root._selectedBorderWidth
-                width: layout.implicitWidth + ( root._selectedBorderWidth * 2 )
-                height:  layout.implicitHeight + ( root._selectedBorderWidth * 2 )
+                x: - root.selectedBorderWidth
+                y: - root.selectedBorderWidth
+                width: layout.implicitWidth + ( root.selectedBorderWidth * 2 )
+                height:  layout.implicitHeight + ( root.selectedBorderWidth * 2 )
                 color: VLCStyle.colors.bgAlt
                 visible: root.selected || root._highlighted
             }



More information about the vlc-commits mailing list