QML-UI: repair DiveList

The new SHA for Kirigami did all kinds of nasty things to our DiveList.
This commit tries to repair most of the damage. Nothing more than
some margins, anchors, and even a font that changed.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-10-18 10:37:41 +02:00 committed by Dirk Hohndel
parent 64d342ca9f
commit a525fff112

View file

@ -86,18 +86,20 @@ Kirigami.ScrollablePage {
Item { Item {
id: diveListEntry id: diveListEntry
width: parent.width - Kirigami.Units.gridUnit * (innerListItem.deleteButtonVisible ? 3 : 1) width: parent.width - Kirigami.Units.gridUnit * (innerListItem.deleteButtonVisible ? 3 : 1)
height: childrenRect.height - Kirigami.Units.smallSpacing height: childrenRect.height + Kirigami.Units.smallSpacing
anchors.left: leftBarDive.right anchors.left: leftBarDive.right
Controls.Label { Controls.Label {
id: locationText id: locationText
text: dive.location text: dive.location
font.weight: Font.Bold font.weight: Font.Bold
font.pointSize: subsurfaceTheme.regularPointSize
elide: Text.ElideRight elide: Text.ElideRight
maximumLineCount: 1 // needed for elide to work at all maximumLineCount: 1 // needed for elide to work at all
color: textColor color: textColor
anchors { anchors {
left: parent.left left: parent.left
leftMargin: horizontalPadding * 2 leftMargin: horizontalPadding * 2
topMargin: Kirigami.Units.smallSpacing
top: parent.top top: parent.top
right: parent.right right: parent.right
} }
@ -106,7 +108,7 @@ Kirigami.ScrollablePage {
anchors { anchors {
left: locationText.left left: locationText.left
top: locationText.bottom top: locationText.bottom
topMargin: - Kirigami.Units.smallSpacing * 2 topMargin: Kirigami.Units.smallSpacing
bottom: numberText.bottom bottom: numberText.bottom
} }
@ -134,7 +136,7 @@ Kirigami.ScrollablePage {
right: parent.right right: parent.right
rightMargin: horizontalPadding rightMargin: horizontalPadding
top: locationText.bottom top: locationText.bottom
topMargin: - Kirigami.Units.smallSpacing * 2 topMargin: Kirigami.Units.smallSpacing
} }
} }
} }