Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
76b7642e
Commit
76b7642e
authored
Jul 23, 2021
by
Volker Krause
Browse files
Fix trip group delegate content hiding/unhiding
Seems another regression of the move to DelegateChooser.
parent
9d094009
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/TripGroupDelegate.qml
View file @
76b7642e
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment