Commit b453e5b7 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/digital-clock] Port delegates to reserveSpaceForSubtitle

Just added in Kirigami 5.79, which makes the manual sizing hack
unnecessary.
parent 1419c48b
...@@ -67,8 +67,6 @@ ColumnLayout { ...@@ -67,8 +67,6 @@ ColumnLayout {
delegate: Kirigami.BasicListItem { delegate: Kirigami.BasicListItem {
id: timeZoneListItem id: timeZoneListItem
property bool isCurrent: plasmoid.configuration.lastSelectedTimezone === model.timeZoneId property bool isCurrent: plasmoid.configuration.lastSelectedTimezone === model.timeZoneId
// Otherwise the list item changes height when its subtitles appears
implicitHeight: Math.round(Kirigami.Units.gridUnit * 2.5)
bold: isCurrent bold: isCurrent
...@@ -77,6 +75,7 @@ ColumnLayout { ...@@ -77,6 +75,7 @@ ColumnLayout {
activeBackgroundColor: "transparent" activeBackgroundColor: "transparent"
activeTextColor: Kirigami.Theme.textColor activeTextColor: Kirigami.Theme.textColor
reserveSpaceForSubtitle: true
// FIXME: this should have already evaluated to false because // FIXME: this should have already evaluated to false because
// the list item doesn't have an icon // the list item doesn't have an icon
reserveSpaceForIcon: false reserveSpaceForIcon: false
......
Supports Markdown
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