Commit 1b1dd99b authored by Tranter Madi's avatar Tranter Madi 🌧
Browse files

Clean unneeded code

parent d3656166
Pipeline #62596 passed with stage
in 8 minutes and 50 seconds
...@@ -88,9 +88,7 @@ BasePlayListDelegate { ...@@ -88,9 +88,7 @@ BasePlayListDelegate {
text: '99/9' text: '99/9'
} }
Layout.minimumWidth: fakeLabel.width
Layout.preferredWidth: fakeLabel.width Layout.preferredWidth: fakeLabel.width
Layout.maximumWidth: fakeLabel.width
Layout.preferredHeight: playListEntry.height Layout.preferredHeight: playListEntry.height
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.leftMargin: !LayoutMirroring.enabled ? Kirigami.Units.smallSpacing : 0 Layout.leftMargin: !LayoutMirroring.enabled ? Kirigami.Units.smallSpacing : 0
...@@ -159,7 +157,6 @@ BasePlayListDelegate { ...@@ -159,7 +157,6 @@ BasePlayListDelegate {
font.weight: (isPlaying ? Font.Bold : Font.Normal) font.weight: (isPlaying ? Font.Bold : Font.Normal)
color: simpleMode ? myPalette.highlightedText : myPalette.text color: simpleMode ? myPalette.highlightedText : myPalette.text
Layout.maximumWidth: mainCompactLabel.implicitWidth + 1
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
...@@ -184,19 +181,11 @@ BasePlayListDelegate { ...@@ -184,19 +181,11 @@ BasePlayListDelegate {
elide: Text.ElideRight elide: Text.ElideRight
} }
Item {
Layout.fillWidth: true
Layout.preferredWidth: 0
}
Loader { Loader {
id: hoverLoader id: hoverLoader
active: false active: false
visible: active visible: active
// this is needed for updating mainCompactLabel's width
Layout.preferredWidth: active ? -1 : 0
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
sourceComponent: Row { sourceComponent: Row {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment