Commit c977f8fa authored by Martin Kacej's avatar Martin Kacej

IPdetails removed unnecessary elements, coding style

parent 78286fbd
......@@ -23,34 +23,27 @@ import QtQuick.Layouts 1.2
import org.kde.plasma.components 2.0 as PlasmaComponents
ColumnLayout{
property var adress: ""
property var ipmap: []
property var address: ""
property var gateway: ""
spacing: units.gridUnit
PlasmaComponents.Label {
PlasmaComponents.Label{
anchors.margins: units.gridUnit
text: i18n("IP Settings")
}
PlasmaComponents.Switch {
id: manualIPCheckbox
checked: false
onCheckedChanged: {
manuaIPSettings.visible = checked
}
}
ColumnLayout {
ColumnLayout{
id: manuaIPSettings
anchors.top: manualIPCheckbox.bottom
visible: false
visible: true
PlasmaComponents.Label {
text: i18n("IP Address")
}
Controls.TextField {
placeholderText: i18n("193.168.1.128")
text: adress
text: address
}
PlasmaComponents.Label {
......@@ -77,4 +70,9 @@ ColumnLayout{
placeholderText: i18n("8.8.8.8")
}
}
onVisibleChanged: {
if (visible == true){
address = ipmap["address-data"]
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment