From cc6c41c8464a10c8d5a0d5a3cdf6c7d03b95ed57 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Apr 2017 13:32:16 -0700 Subject: 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 --- mobile-widgets/qml/GpsList.qml | 86 ++++++++++++++++++++---------------------- 1 file 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: [ -- cgit v1.2.3-70-g09d2