From 21bb90be0bc3dab134690d90669d38b0d39a2adc Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Thu, 18 Mar 2021 03:09:28 +0100 Subject: radio buttons for automatic/manual selection --- gui/qml/main.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gui/qml/main.qml') diff --git a/gui/qml/main.qml b/gui/qml/main.qml index ace5c53..ce8faa2 100644 --- a/gui/qml/main.qml +++ b/gui/qml/main.qml @@ -63,6 +63,7 @@ Window { anchors.horizontalCenter: parent.horizontalCenter } + SwitchDelegate { id: vpntoggle @@ -118,6 +119,15 @@ Window { color: vpntoggle.down ? "#bdbebf" : "#eeeeee" } } // end switchdelegate + + Text { + id: manualOverrideWarning + font.pixelSize: 10 + color: "grey" + text: qsTr("Location has been manually set.") + anchors.horizontalCenter: parent.horizontalCenter + visible: manualSelectionButton.checked + } } } @@ -131,9 +141,19 @@ Window { anchors.centerIn: parent spacing: 10 + RadioButton { + id: autoSelectionButton + checked: true + text: qsTr("Automatic") + } + RadioButton { + id: manualSelectionButton + text: qsTr("Manual") + } ComboBox { id: gwSelector editable: false + visible: manualSelectionButton.checked anchors.horizontalCenter: parent.horizontalCenter model: [qsTr("Automatic")] -- cgit v1.2.3