mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: merge all GPS settings in one block
Put all GPS settings in one block and revert to a 2 column layout while maintaing the 4 column widh. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
a56e98ffc6
commit
bc0f473908
1 changed files with 17 additions and 18 deletions
|
@ -289,43 +289,30 @@ Kirigami.ScrollablePage {
|
|||
Kirigami.Label {
|
||||
text: qsTr("Distance threshold (meters)")
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.preferredWidth: settingsPage.col1Width + settingsPage.col2Width
|
||||
Layout.preferredWidth: settingsPage.col1Width + settingsPage.col2Width + settingsPage.col3Width
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: distanceThreshold
|
||||
text: manager.distanceThreshold
|
||||
Layout.preferredWidth: settingsPage.col3Width + settingsPage.col4Width
|
||||
Layout.preferredWidth: settingsPage.col4Width
|
||||
}
|
||||
|
||||
Kirigami.Label {
|
||||
text: qsTr("Time threshold (minutes)")
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.preferredWidth: settingsPage.col1Width + settingsPage.col2Width
|
||||
Layout.preferredWidth: settingsPage.col1Width + settingsPage.col2Width + settingsPage.col3Width
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: timeThreshold
|
||||
text: manager.timeThreshold
|
||||
Layout.preferredWidth: settingsPage.col3Width + settingsPage.col4Width
|
||||
Layout.preferredWidth: settingsPage.col4Width
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
height: 1
|
||||
opacity: 0.5
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
GridLayout {
|
||||
id: locationService
|
||||
columns: 4
|
||||
width: parent.width
|
||||
Kirigami.Label {
|
||||
text: qsTr("Run location service")
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.preferredWidth: settingsPage.col1Width + settingsPage.col2Width + settingsPage.col3Width
|
||||
}
|
||||
Switch {
|
||||
|
@ -359,6 +346,12 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
height: 1
|
||||
opacity: 0.5
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
GridLayout {
|
||||
id: libdclogprefs
|
||||
columns: 4
|
||||
|
@ -406,6 +399,12 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
height: 1
|
||||
opacity: 0.5
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
GridLayout {
|
||||
id: developer
|
||||
columns: 4
|
||||
|
|
Loading…
Reference in a new issue