QML UI: DiveList: allow trip header to wrap

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-06-22 03:11:51 -07:00
parent d9cb65cbed
commit ea218b9d24

View file

@ -185,7 +185,7 @@ Kirigami.ScrollablePage {
height: childrenRect.height - Kirigami.Units.smallSpacing
Rectangle {
id: headingBackground
height: section == "" ? 0 : Kirigami.Units.gridUnit * 2.5
height: section == "" ? 0 : sectionText.height + Kirigami.Units.gridUnit
anchors {
left: parent.left
right: parent.right
@ -208,6 +208,7 @@ Kirigami.ScrollablePage {
}
shownText
}
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
visible: text !== ""
font.weight: Font.Bold
anchors {