From 0861a633160e0a7bc712134bb560f56c97d2b99d Mon Sep 17 00:00:00 2001 From: Prince Gupta Date: Tue, 15 Dec 2020 20:36:29 +0530 Subject: [PATCH] qml: move close icon in video expand delegate Signed-off-by: Pierre Lamot --- .../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() - } - } } } } -- 2.11.4.GIT