mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile/export: fix styling of radio buttons
Use the TemplateRadioButton to get the default styling - and by switching to the RadioButton from Controls.2 we also get exclusivity by default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ddae7e18d8
commit
c6f73ae144
1 changed files with 5 additions and 16 deletions
|
@ -136,51 +136,40 @@ TemplatePage {
|
||||||
spacing: 3
|
spacing: 3
|
||||||
Layout.margins: Kirigami.Units.gridUnit / 2
|
Layout.margins: Kirigami.Units.gridUnit / 2
|
||||||
|
|
||||||
ExclusiveGroup { id: radioGroup }
|
TemplateRadioButton {
|
||||||
RadioButton {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
text: qsTr("Export Subsurface XML")
|
text: qsTr("Export Subsurface XML")
|
||||||
visible: Qt.platform.os !== "android"
|
visible: Qt.platform.os !== "android"
|
||||||
checked: true
|
checked: true
|
||||||
exclusiveGroup: radioGroup
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
selectedExport = ExportType.EX_DIVES_XML
|
selectedExport = ExportType.EX_DIVES_XML
|
||||||
explain.text = qsTr("Subsurface native XML format.")
|
explain.text = qsTr("Subsurface native XML format.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RadioButton {
|
TemplateRadioButton {
|
||||||
Layout.fillWidth: true
|
|
||||||
text: qsTr("Export Subsurface dive sites XML")
|
text: qsTr("Export Subsurface dive sites XML")
|
||||||
visible: Qt.platform.os !== "android"
|
visible: Qt.platform.os !== "android"
|
||||||
exclusiveGroup: radioGroup
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
selectedExport = ExportType.EX_DIVE_SITES_XML
|
selectedExport = ExportType.EX_DIVE_SITES_XML
|
||||||
explain.text = qsTr("Subsurface dive sites native XML format.")
|
explain.text = qsTr("Subsurface dive sites native XML format.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RadioButton {
|
TemplateRadioButton {
|
||||||
Layout.fillWidth: true
|
|
||||||
text: qsTr("Export UDDF")
|
text: qsTr("Export UDDF")
|
||||||
visible: Qt.platform.os !== "android"
|
visible: Qt.platform.os !== "android"
|
||||||
exclusiveGroup: radioGroup
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
selectedExport = ExportType.EX_UDDF
|
selectedExport = ExportType.EX_UDDF
|
||||||
explain.text = qsTr("Generic format that is used for data exchange between a variety of diving related programs.")
|
explain.text = qsTr("Generic format that is used for data exchange between a variety of diving related programs.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RadioButton {
|
TemplateRadioButton {
|
||||||
Layout.fillWidth: true
|
|
||||||
text: qsTr("Upload divelogs.de")
|
text: qsTr("Upload divelogs.de")
|
||||||
exclusiveGroup: radioGroup
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
selectedExport = ExportType.EX_DIVELOGS_DE
|
selectedExport = ExportType.EX_DIVELOGS_DE
|
||||||
explain.text = qsTr("Send the dive data to divelogs.de website.")
|
explain.text = qsTr("Send the dive data to divelogs.de website.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RadioButton {
|
TemplateRadioButton {
|
||||||
Layout.fillWidth: true
|
|
||||||
text: qsTr("Upload DiveShare")
|
text: qsTr("Upload DiveShare")
|
||||||
exclusiveGroup: radioGroup
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
selectedExport = ExportType.EX_DIVESHARE
|
selectedExport = ExportType.EX_DIVESHARE
|
||||||
explain.text = qsTr("Send the dive data to dive-share.appspot.com website.")
|
explain.text = qsTr("Send the dive data to dive-share.appspot.com website.")
|
||||||
|
|
Loading…
Reference in a new issue