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