From c6f73ae144566dff0d4a6ae5f803a72e4b64281b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 17 Feb 2020 13:47:41 -0800 Subject: 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 --- mobile-widgets/qml/Export.qml | 21 +++++---------------- 1 file 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.") -- cgit v1.2.3-70-g09d2