Commit af9157ad authored by Tranter Madi's avatar Tranter Madi 🌧 Committed by Nate Graham
Browse files

Move playlist's section sizer to BaseTheme

parent 8a1c4343
Pipeline #63093 passed with stage
in 8 minutes and 16 seconds
......@@ -48,4 +48,16 @@ Item {
property int gridDelegateSize: 170
property int viewSelectorSmallSizeThreshold: 800
readonly property alias sectionHeight: sectionSizer.implicitHeight
// calculate a fixed height for playlist's section delegates
// workaround for QTBUG-52595
Column {
id: sectionSizer
visible: false
spacing: Kirigami.Units.smallSpacing
LabelWithToolTip { text: "M\nM"; level: 2 }
LabelWithToolTip { text: "M" }
}
}
......@@ -52,7 +52,7 @@ Rectangle {
id: albumHeaderTextColumn
Layout.fillWidth: true
Layout.preferredHeight: background.ListView.view.sectionSizer.implicitHeight
Layout.preferredHeight: elisaTheme.sectionHeight
Layout.leftMargin: !LayoutMirroring.enabled ? - Kirigami.Units.smallSpacing : 0
Layout.rightMargin: LayoutMirroring.enabled ? - Kirigami.Units.smallSpacing : 0
......
......@@ -197,7 +197,6 @@ Kirigami.Page {
property alias list: playListView
ListView {
id: playListView
readonly property alias sectionSizer: sectionSizer
focus: true
clip: true
......@@ -368,16 +367,6 @@ Kirigami.Page {
onTriggered: playListNotification.visible = false
}
}
// calculate a fixed hight for section delegates
// workaround for QTBUG-52595
Column {
id: sectionSizer
visible: false
spacing: Kirigami.Units.smallSpacing
LabelWithToolTip { text: "M\nM"; level: 2 }
LabelWithToolTip { text: "M" }
}
}
}
}
......
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