[vlc-devel] [PATCH 13/29] qml: add property textHorizontalAlignment to GridItem

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


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

diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index 929216e9b2..93407c7b7b 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -31,6 +31,7 @@ Item {
     property alias image: picture.source
     property alias title: titleLabel.text
     property alias subtitle: subtitleTxt.text
+    property alias textHorizontalAlignment: subtitleTxt.horizontalAlignment
     property alias playCoverBorder: picture.playCoverBorder
     property alias playCoverOnlyBorders: picture.playCoverOnlyBorders
     property bool selected: false
@@ -231,6 +232,7 @@ Item {
 
                         elide: Text.ElideNone
                         width: pictureWidth
+                        horizontalAlignment: root.textHorizontalAlignment
                     }
                 }
 
-- 
2.25.1



More information about the vlc-devel mailing list