Browse Source

qml/ArtworkInfoWidget: Add the 'preferredWidth' property

Co-authored-by: Fatih Uzunoglu <fuzun54@outlook.com>
pull/162/head
Benjamin Arnaud 3 years ago
committed by Steve Lhomme
parent
commit
aec938f083
  1. 6
      modules/gui/qt/player/qml/controlbarcontrols/ArtworkInfoWidget.qml

6
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")

Loading…
Cancel
Save