[vlc-commits] qml: fix ArtworkInfo sizing in toolbareditor
Fatih Uzunoglu
git at videolan.org
Mon Dec 7 10:08:45 UTC 2020
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Dec 4 02:02:01 2020 +0300| [044dead4c608ef3b3d3efb870432fb397ea5bb60] | committer: Pierre Lamot
qml: fix ArtworkInfo sizing in toolbareditor
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=044dead4c608ef3b3d3efb870432fb397ea5bb60
---
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
More information about the vlc-commits
mailing list