mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
QML UI: show dive trip again
This once again displays trips in the dive list and makes the visual a bit more spaceous. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6faf33047e
commit
9e9d220c98
1 changed files with 3 additions and 2 deletions
|
@ -102,7 +102,7 @@ MobileComponents.Page {
|
|||
id: tripHeading
|
||||
Item {
|
||||
width: page.width - MobileComponents.Units.gridUnit
|
||||
height: childrenRect.height + MobileComponents.Units.smallSpacing * 2
|
||||
height: childrenRect.height + MobileComponents.Units.smallSpacing * 2 + Math.max(2, MobileComponents.Units.gridUnit / 2)
|
||||
|
||||
MobileComponents.Heading {
|
||||
id: sectionText
|
||||
|
@ -110,6 +110,7 @@ MobileComponents.Page {
|
|||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
topMargin: Math.max(2, MobileComponents.Units.gridUnit / 2)
|
||||
leftMargin: MobileComponents.Units.gridUnit / 2
|
||||
right: parent.right
|
||||
}
|
||||
|
@ -149,7 +150,7 @@ MobileComponents.Page {
|
|||
boundsBehavior: Flickable.StopAtBounds
|
||||
maximumFlickVelocity: parent.height * 5
|
||||
cacheBuffer: 0 // seems to avoid empty rendered profiles
|
||||
section.property: "trip" // FIXME: "dive.trip" gives weird section labels.
|
||||
section.property: "dive.trip"
|
||||
section.criteria: ViewSection.FullString
|
||||
section.delegate: tripHeading
|
||||
header: MobileComponents.Heading {
|
||||
|
|
Loading…
Reference in a new issue