QML UI: fix GPS list rendering

There was an extra BasicListItem inside the SwipeListItem.
This commit just removes 5 lines, the rest is indentation change.

Fixes #312

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-04-15 13:32:16 -07:00
parent 052be692bb
commit cc6c41c846

View file

@ -19,51 +19,47 @@ Kirigami.ScrollablePage {
id: gpsFix id: gpsFix
enabled: true enabled: true
width: parent.width width: parent.width
Kirigami.BasicListItem { GridLayout {
supportsMouseEvents: true columns: 4
width: parent.width - Kirigami.Units.gridUnit id: timeAndName
icon: "" width: parent.width
GridLayout { Kirigami.Label {
columns: 4 text: qsTr('Date: ')
id: timeAndName opacity: 0.6
Kirigami.Label { font.pointSize: subsurfaceTheme.smallPointSize
text: qsTr('Date: ') }
opacity: 0.6 Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: date
} Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth)
Kirigami.Label { font.pointSize: subsurfaceTheme.smallPointSize
text: date }
Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: qsTr('Name: ')
} opacity: 0.6
Kirigami.Label { font.pointSize: subsurfaceTheme.smallPointSize
text: qsTr('Name: ') }
opacity: 0.6 Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: name
} Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth)
Kirigami.Label { font.pointSize: subsurfaceTheme.smallPointSize
text: name }
Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: qsTr('Latitude: ')
} opacity: 0.6
Kirigami.Label { font.pointSize: subsurfaceTheme.smallPointSize
text: qsTr('Latitude: ') }
opacity: 0.6 Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: latitude
} font.pointSize: subsurfaceTheme.smallPointSize
Kirigami.Label { }
text: latitude Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: qsTr('Longitude: ')
} opacity: 0.6
Kirigami.Label { font.pointSize: subsurfaceTheme.smallPointSize
text: qsTr('Longitude: ') }
opacity: 0.6 Kirigami.Label {
font.pointSize: subsurfaceTheme.smallPointSize text: longitude
} font.pointSize: subsurfaceTheme.smallPointSize
Kirigami.Label {
text: longitude
font.pointSize: subsurfaceTheme.smallPointSize
}
} }
} }
actions: [ actions: [