[vlc-commits] qml: use MenuCaption for texts in SortControl's context menu

Prince Gupta git at videolan.org
Thu Aug 27 12:43:58 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Aug 12 21:18:08 2020 +0530| [e4018b3339d978420d4199b4c5775d7b5d051f9c] | committer: Pierre Lamot

qml: use MenuCaption for texts in SortControl's context menu

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/widgets/qml/SortControl.qml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/SortControl.qml b/modules/gui/qt/widgets/qml/SortControl.qml
index ef5b9449f5..e44206a55e 100644
--- a/modules/gui/qt/widgets/qml/SortControl.qml
+++ b/modules/gui/qt/widgets/qml/SortControl.qml
@@ -130,7 +130,7 @@ Widgets.NavigableFocusScope {
                         visible: mouseArea.containsMouse
                     }
 
-                    Text {
+                    MenuCaption {
                         id: itemText
                         text: root.textRole ? (Array.isArray(root.model) ? modelData[root.textRole] : model[root.textRole]) : modelData
                         anchors.fill: parent
@@ -139,8 +139,6 @@ Widgets.NavigableFocusScope {
                         leftPadding: VLCStyle.margin_xsmall
                         rightPadding: VLCStyle.margin_xsmall
                         color: _colors.buttonText
-                        elide: Text.ElideRight
-                        verticalAlignment: Text.AlignVCenter
                     }
 
                     MouseArea {



More information about the vlc-commits mailing list