diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-17 13:47:41 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-18 07:34:46 -0800 |
commit | c6f73ae144566dff0d4a6ae5f803a72e4b64281b (patch) | |
tree | 6260509faae0ed89073777dd39df498b0ff80e9c /mobile-widgets/qml | |
parent | ddae7e18d84fa0f07e6d2ba19150808e88cf1c3d (diff) | |
download | subsurface-c6f73ae144566dff0d4a6ae5f803a72e4b64281b.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/Export.qml | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/mobile-widgets/qml/Export.qml b/mobile-widgets/qml/Export.qml index a1d17e7f0..88e5a1580 100644 --- a/mobile-widgets/qml/Export.qml +++ b/mobile-widgets/qml/Export.qml @@ -136,51 +136,40 @@ TemplatePage { spacing: 3 Layout.margins: Kirigami.Units.gridUnit / 2 - ExclusiveGroup { id: radioGroup } - RadioButton { - Layout.fillWidth: true + TemplateRadioButton { text: qsTr("Export Subsurface XML") visible: Qt.platform.os !== "android" checked: true - exclusiveGroup: radioGroup onClicked: { selectedExport = ExportType.EX_DIVES_XML explain.text = qsTr("Subsurface native XML format.") } } - RadioButton { - Layout.fillWidth: true + TemplateRadioButton { text: qsTr("Export Subsurface dive sites XML") visible: Qt.platform.os !== "android" - exclusiveGroup: radioGroup onClicked: { selectedExport = ExportType.EX_DIVE_SITES_XML explain.text = qsTr("Subsurface dive sites native XML format.") } } - RadioButton { - Layout.fillWidth: true + TemplateRadioButton { text: qsTr("Export UDDF") visible: Qt.platform.os !== "android" - exclusiveGroup: radioGroup onClicked: { selectedExport = ExportType.EX_UDDF explain.text = qsTr("Generic format that is used for data exchange between a variety of diving related programs.") } } - RadioButton { - Layout.fillWidth: true + TemplateRadioButton { text: qsTr("Upload divelogs.de") - exclusiveGroup: radioGroup onClicked: { selectedExport = ExportType.EX_DIVELOGS_DE explain.text = qsTr("Send the dive data to divelogs.de website.") } } - RadioButton { - Layout.fillWidth: true + TemplateRadioButton { text: qsTr("Upload DiveShare") - exclusiveGroup: radioGroup onClicked: { selectedExport = ExportType.EX_DIVESHARE explain.text = qsTr("Send the dive data to dive-share.appspot.com website.") |