diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-03-18 03:09:28 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-05-04 14:58:39 +0200 |
commit | 21bb90be0bc3dab134690d90669d38b0d39a2adc (patch) | |
tree | 094da09e55fe8e1bb624f5a4e5fff72342072b41 /gui/qml/main.qml | |
parent | 664b3ba3fe96b00fff11f2a4ed3551242c7314fe (diff) |
radio buttons for automatic/manual selection
Diffstat (limited to 'gui/qml/main.qml')
-rw-r--r-- | gui/qml/main.qml | 20 |
1 files changed, 20 insertions, 0 deletions
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")] |