[vlc-devel] [PATCH 09/29] qml: make 'selectedBorderWidth' property of GridItem public

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


this property correspondes to extra width from all direction the Item will take when selected
---
 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
             }
-- 
2.25.1



More information about the vlc-devel mailing list