Fix ListSectionHeaders on DownloadPage

Also remove the workaround for a qt5 bug which apparently is no longer
there with qt6.
This commit is contained in:
Bart De Vries 2023-11-03 14:59:13 +01:00
parent ffe4f80240
commit 9c79fc131b
1 changed files with 6 additions and 4 deletions

View File

@ -67,10 +67,12 @@ Kirigami.ScrollablePage {
section {
delegate: Kirigami.ListSectionHeader {
height: implicitHeight // workaround for bug 422289
label: section == Enclosure.Downloading ? i18n("Downloading") :
section == Enclosure.PartiallyDownloaded ? i18n("Incomplete Downloads") :
section == Enclosure.Downloaded ? i18n("Downloaded") :
required property string section
// NOTE: the Enclosure.Status enum values get converted to strings
label: section == "Downloading" ? i18n("Downloading") :
section == "PartiallyDownloaded" ? i18n("Incomplete Downloads") :
section == "Downloaded" ? i18n("Downloaded") :
""
}
property: "entry.enclosure.status"