mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
QML UI: add preference for libdivecomputer log
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a0c93e3b7
commit
dbb5826f2a
1 changed files with 48 additions and 0 deletions
|
@ -250,6 +250,7 @@ Kirigami.Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
id: gpsPrefs
|
||||||
columns: 2
|
columns: 2
|
||||||
width: parent.width - Kirigami.Units.gridUnit
|
width: parent.width - Kirigami.Units.gridUnit
|
||||||
anchors {
|
anchors {
|
||||||
|
@ -292,4 +293,51 @@ Kirigami.Page {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
GridLayout {
|
||||||
|
columns: 2
|
||||||
|
width: parent.width - Kirigami.Units.gridUnit
|
||||||
|
anchors {
|
||||||
|
top: gpsPrefs.bottom
|
||||||
|
margins: Kirigami.Units.gridUnit / 2
|
||||||
|
}
|
||||||
|
Kirigami.Heading {
|
||||||
|
text: qsTr("Debug log for download from divecomputer")
|
||||||
|
color: subsurfaceTheme.textColor
|
||||||
|
level: 3
|
||||||
|
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||||
|
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||||
|
Layout.columnSpan: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: libdclogButton
|
||||||
|
checked: manager.libdcLog
|
||||||
|
onClicked: {
|
||||||
|
manager.libdcLog = checked
|
||||||
|
}
|
||||||
|
indicator: Rectangle {
|
||||||
|
implicitWidth: 20
|
||||||
|
implicitHeight: 20
|
||||||
|
x: libdclogButton.leftPadding
|
||||||
|
y: parent.height / 2 - height / 2
|
||||||
|
radius: 4
|
||||||
|
border.color: libdclogButton.down ? subsurfaceTheme.primaryColor : subsurfaceTheme.darkerPrimaryColor
|
||||||
|
color: subsurfaceTheme.backgroundColor
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: 12
|
||||||
|
height: 12
|
||||||
|
x: 4
|
||||||
|
y: 4
|
||||||
|
radius: 3
|
||||||
|
color: libdclogButton.down ? subsurfaceTheme.primaryColor : subsurfaceTheme.darkerPrimaryColor
|
||||||
|
visible: libdclogButton.checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Kirigami.Label {
|
||||||
|
text: qsTr("Save detailed log of interaction with the dive computer")
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue