Commit 76b7642e authored by Volker Krause's avatar Volker Krause
Browse files

Fix trip group delegate content hiding/unhiding

Seems another regression of the move to DelegateChooser.
parent 9d094009
......@@ -61,7 +61,6 @@ Kirigami.AbstractCard {
contentItem: Column {
id: contentLayout
spacing: Kirigami.Units.smallSpacing
visible: root.rangeType != TimelineElement.RangeEnd
QQC2.Label {
text: i18np("Date: %2 (one day)", "Date: %2 (%1 days)",
......@@ -125,11 +124,13 @@ Kirigami.AbstractCard {
}
}
}
}
Component.onCompleted: {
// hide content entirely in the header-only end elements
parent.visible = contentLayout.visible
}
// hide content entirely in the header-only end elements
Binding {
target: contentItem.parent
property: "visible"
value: rangeType != TimelineElement.RangeEnd
}
onClicked: {
......
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