[vlc-devel] [PATCH 23/26] qml: move close icon in video expand delegate
Prince Gupta
guptaprince8832 at gmail.com
Thu Dec 17 17:26:21 UTC 2020
---
.../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.25.1
More information about the vlc-devel
mailing list