[vlc-devel] [PATCH 26/27] qml: fix ArtworkInfo sizing in toolbareditor
Fatih Uzunoglu
fuzun54 at outlook.com
Fri Dec 4 00:02:01 CET 2020
---
modules/gui/qt/player/qml/ControlButtons.qml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/player/qml/ControlButtons.qml b/modules/gui/qt/player/qml/ControlButtons.qml
index 5a11d22940..65e14ed1b5 100644
--- a/modules/gui/qt/player/qml/ControlButtons.qml
+++ b/modules/gui/qt/player/qml/ControlButtons.qml
@@ -786,7 +786,7 @@ Item{
readonly property real minimumWidth: cover.width
property real extraWidth: 0
- implicitWidth: paintOnly ? playingItemInfoRow.implicitWidth : (minimumWidth + extraWidth)
+ implicitWidth: paintOnly ? playingItemInfoRow.width : (minimumWidth + extraWidth)
implicitHeight: playingItemInfoRow.implicitHeight
@@ -810,8 +810,10 @@ Item{
Row {
id: playingItemInfoRow
+ width: (coverItem.width + infoColumn.width)
Item {
+ id: coverItem
anchors.verticalCenter: parent.verticalCenter
implicitHeight: childrenRect.height
implicitWidth: childrenRect.width
@@ -850,10 +852,11 @@ Item{
}
Column {
+ id: infoColumn
anchors.verticalCenter: parent.verticalCenter
leftPadding: VLCStyle.margin_xsmall
- width: (implicitWidth + VLCStyle.margin_xsmall)
+ width: (paintOnly ? Math.max(titleLabel.width, artistLabel.width, progressIndicator.width) : implicitWidth) + VLCStyle.margin_xsmall
visible: paintOnly || artworkInfoItem.extraWidth > 0
--
2.27.0
More information about the vlc-devel
mailing list