[vlc-commits] qml: move close icon in video expand delegate

Prince Gupta git at videolan.org
Mon Jan 4 13:37:53 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Dec 15 20:54:29 2020 +0530| [0861a633160e0a7bc712134bb560f56c97d2b99d] | committer: Pierre Lamot

qml: move close icon in video expand delegate

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

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

 .../qt/medialibrary/qml/VideoInfoExpandPanel.qml   | 30 ++++++++++++----------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml b/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml
index a0688ed5f5..5d4548d55d 100644
--- a/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml
@@ -149,9 +149,23 @@ Widgets.NavigableFocusScope {
                 Layout.fillWidth: true
                 Layout.alignment: Qt.AlignLeft | Qt.AlignTop
 
-                Widgets.SubtitleLabel {
-                    text: model.title || i18n.qtr("Unknown title")
+                RowLayout {
                     width: parent.width
+
+                    Widgets.SubtitleLabel {
+                        text: model.title || i18n.qtr("Unknown title")
+
+                        Layout.fillWidth: true
+                    }
+
+                    Widgets.IconLabel {
+                        text: VLCIcons.close
+
+                        MouseArea {
+                            anchors.fill: parent
+                            onClicked: expandRect.retract()
+                        }
+                    }
                 }
 
                 Widgets.CaptionLabel {
@@ -283,18 +297,6 @@ Widgets.NavigableFocusScope {
                     }
                 }
             }
-
-            Widgets.IconLabel {
-                text: VLCIcons.close
-                color: VLCStyle.colors.caption
-
-                Layout.alignment: Qt.AlignTop
-
-                MouseArea {
-                    anchors.fill: parent
-                    onClicked: expandRect.retract()
-                }
-            }
         }
     }
 }



More information about the vlc-commits mailing list