From aec938f083e269bcc69de2b8f9b4307a0336584b Mon Sep 17 00:00:00 2001 From: Benjamin Arnaud Date: Fri, 31 Mar 2023 11:04:33 +0200 Subject: [PATCH] qml/ArtworkInfoWidget: Add the 'preferredWidth' property Co-authored-by: Fatih Uzunoglu --- .../qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml b/modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml index de8e096e2f..175625e4dc 100644 --- a/modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml +++ b/modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml @@ -33,6 +33,12 @@ AbstractButton { readonly property real minimumWidth: coverRect.implicitWidth + + (leftPadding + rightPadding) + readonly property int preferredWidth: minimumWidth + contentItem.spacing * 2 + + + Math.max(titleLabel.implicitWidth, + artistLabel.implicitWidth, + progressIndicator.implicitWidth) + property bool _keyPressed: false text: I18n.qtr("Open player")