[vlc-devel] [PATCH 11/18] qml: use MenuCaption for texts in SortControl's context menu

Prince Gupta guptaprince8832 at gmail.com
Thu Aug 20 14:15:34 CEST 2020


---
 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 {
-- 
2.25.1



More information about the vlc-devel mailing list