diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-04-15 13:32:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-15 13:33:48 -0700 |
commit | cc6c41c8464a10c8d5a0d5a3cdf6c7d03b95ed57 (patch) | |
tree | f4705c932a0e0e80d1539d899ebb88d17d15aebb /mobile-widgets/qml/GpsList.qml | |
parent | 052be692bbfe81636318588f48b2530c9628499d (diff) | |
download | subsurface-cc6c41c8464a10c8d5a0d5a3cdf6c7d03b95ed57.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/GpsList.qml')
-rw-r--r-- | mobile-widgets/qml/GpsList.qml | 86 |
1 files changed, 41 insertions, 45 deletions
diff --git a/mobile-widgets/qml/GpsList.qml b/mobile-widgets/qml/GpsList.qml index 866b5be52..7637fdac8 100644 --- a/mobile-widgets/qml/GpsList.qml +++ b/mobile-widgets/qml/GpsList.qml @@ -19,51 +19,47 @@ Kirigami.ScrollablePage { id: gpsFix enabled: true width: parent.width - Kirigami.BasicListItem { - supportsMouseEvents: true - width: parent.width - Kirigami.Units.gridUnit - icon: "" - GridLayout { - columns: 4 - id: timeAndName - Kirigami.Label { - text: qsTr('Date: ') - opacity: 0.6 - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: date - Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: qsTr('Name: ') - opacity: 0.6 - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: name - Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: qsTr('Latitude: ') - opacity: 0.6 - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: latitude - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: qsTr('Longitude: ') - opacity: 0.6 - font.pointSize: subsurfaceTheme.smallPointSize - } - Kirigami.Label { - text: longitude - font.pointSize: subsurfaceTheme.smallPointSize - } + GridLayout { + columns: 4 + id: timeAndName + width: parent.width + Kirigami.Label { + text: qsTr('Date: ') + opacity: 0.6 + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: date + Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: qsTr('Name: ') + opacity: 0.6 + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: name + Layout.preferredWidth: Math.max(parent.width / 5, paintedWidth) + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: qsTr('Latitude: ') + opacity: 0.6 + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: latitude + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: qsTr('Longitude: ') + opacity: 0.6 + font.pointSize: subsurfaceTheme.smallPointSize + } + Kirigami.Label { + text: longitude + font.pointSize: subsurfaceTheme.smallPointSize } } actions: [ |