summaryrefslogtreecommitdiffstats
path: root/basicsuite/Launcher Settings/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/Launcher Settings/main.qml')
-rw-r--r--basicsuite/Launcher Settings/main.qml39
1 files changed, 39 insertions, 0 deletions
diff --git a/basicsuite/Launcher Settings/main.qml b/basicsuite/Launcher Settings/main.qml
index 8384566..140aebb 100644
--- a/basicsuite/Launcher Settings/main.qml
+++ b/basicsuite/Launcher Settings/main.qml
@@ -31,6 +31,11 @@ Rectangle {
source: "BrightnessController.qml"
}
+ Loader {
+ id: networkControllerLoader
+ source: "NetworkController.qml"
+ }
+
Flickable {
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
@@ -108,6 +113,40 @@ Rectangle {
}
}
}
+
+ GroupBox {
+ id: networkOptions
+ title: "Network Options"
+
+ Layout.fillWidth: true
+
+ GridLayout {
+ id: networkGrid
+
+ rows: 2
+ columns: 3
+ flow: GridLayout.TopToBottom
+ anchors.fill: parent
+
+ Label { text: "Hostname: "; }
+ Label { text: "IP address: "; }
+
+ TextField {
+ id: hostname
+ text: if (networkControllerLoader.item != undefined) { networkControllerLoader.item.getHostname(); }
+ Layout.fillWidth: true
+ }
+
+ Label { text: if (networkControllerLoader.item != undefined) { networkControllerLoader.item.getIPAddress(); } }
+
+ Button {
+ text: "Change hostname"
+ onClicked: networkControllerLoader.item.setHostname(hostname.text);
+ enabled: networkControllerLoader.item != undefined
+ }
+
+ }
+ }
}
}
}