[vlc-commits] qml: add property textHorizontalAlignment to GridItem

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


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Jul 23 01:11:01 2020 +0530| [3cd305f5f52b4cbed9c921afeac956bfd0d930ca] | committer: Pierre Lamot

qml: add property textHorizontalAlignment to GridItem

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

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



More information about the vlc-commits mailing list