summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kacej <[email protected]>2017-11-03 13:32:44 +0100
committerMartin Kacej <[email protected]>2017-11-03 13:32:44 +0100
commitb44ceba981a9c6e173075858c0908d662fab76a9 (patch)
tree6a413b5008d8f9962044db9975406ea9944fc8ff
parentedc48c2d2add5f9c738e782677d844397576d2f7 (diff)
additional controls in editor
-rw-r--r--mobile/package/contents/ui/ConnectionEditorDialog.qml23
-rw-r--r--mobile/package/contents/ui/ProxyDetailsView.qml35
-rwxr-xr-x[-rw-r--r--]mobile/wifi.desktop0
3 files changed, 53 insertions, 5 deletions
diff --git a/mobile/package/contents/ui/ConnectionEditorDialog.qml b/mobile/package/contents/ui/ConnectionEditorDialog.qml
index 1a909fb..2303a02 100644
--- a/mobile/package/contents/ui/ConnectionEditorDialog.qml
+++ b/mobile/package/contents/ui/ConnectionEditorDialog.qml
@@ -25,11 +25,12 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
-Item {
+PlasmaExtras.ScrollArea {
property var details
property var str: 0
- Column {
+ ColumnLayout{
+ id: columnlayout
anchors.fill: parent
PlasmaComponents.Label {
@@ -38,7 +39,8 @@ Item {
}
PlasmaComponents.TextField {
- width: 100 // units.GridUnit * 100
+ width: 300 // units.GridUnit * 100
+ placeholderText: i18n("None")
}
PlasmaComponents.Label {
@@ -46,17 +48,28 @@ Item {
text: i18n("Security")
}
Controls.ComboBox {
+ id: combobox
model: [i18n("None"), i18n("WEP Key"), i18n("Dynamic WEP"), i18n("WPA/WPA2 Personal"), i18n("WPA/WPA2 Enterprise")]
}
RowLayout {
+ anchors.top: combobox.bottom
PlasmaComponents.Label {
anchors.left: parent.left
text: i18n("Advanced options")
}
PlasmaComponents.Switch {
-
+ id: advancedOptionsSwitch
+ //checked: false
+ onCheckedChanged: {
+ proxydetailsviewid.visible = checked
+ columnlayout.update()
+ }
}
}
}
-
+ ProxyDetailsView{
+ id:proxydetailsviewid
+ anchors.bottom: columnlayout.bottom
+ anchors.left: parent.left
+ }
}
diff --git a/mobile/package/contents/ui/ProxyDetailsView.qml b/mobile/package/contents/ui/ProxyDetailsView.qml
new file mode 100644
index 0000000..8175e78
--- /dev/null
+++ b/mobile/package/contents/ui/ProxyDetailsView.qml
@@ -0,0 +1,35 @@
+import QtQuick 2.2
+import QtQuick.Controls 1.4 as Controls
+import QtQuick.Layouts 1.2
+import org.kde.plasma.core 2.0 as PlasmaCore
+import org.kde.plasma.components 2.0 as PlasmaComponents
+import org.kde.plasma.extras 2.0 as PlasmaExtras
+ColumnLayout{
+ spacing: units.gridUnit
+
+ PlasmaComponents.Label{
+ text:i18n("Proxy settings")
+ }
+/*
+ Controls.ComboBox{
+ id: proxyComboBox
+ model: [i18n("None"),i18n("Manual")]
+ }
+*/
+ Controls.CheckBox{
+ id: manualProxyCheck
+ checked: false
+ onCheckedChanged: {
+ manuaProxylSettings.visible = checked
+ }
+ }
+
+ Item{
+ id: manuaProxylSettings
+ anchors.top: manualProxyCheck.bottom
+ visible: false
+ Controls.TextField{
+ placeholderText: i18n("None")
+ }
+ }
+}
diff --git a/mobile/wifi.desktop b/mobile/wifi.desktop
index 6f5a246..6f5a246 100644..100755
--- a/mobile/wifi.desktop
+++ b/mobile/wifi.desktop