summaryrefslogtreecommitdiffstats
path: root/basicsuite/launchersettings/main.qml
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@digia.com>2014-01-21 14:26:36 +0100
committerGatis Paeglis <gatis.paeglis@digia.com>2014-01-30 12:39:27 +0200
commit274baa15819458003555749d4e0509ac665f8526 (patch)
tree07c02e9855c762764dd8ca91a3923a712c98bd55 /basicsuite/launchersettings/main.qml
parent2d218473e845e2b382baf6543fb89256992769ac (diff)
[Launcher Settings] Add Wifi GroupBox
Change-Id: I3d9850335c79640d29bb335c24acbfbb79375a1c Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Diffstat (limited to 'basicsuite/launchersettings/main.qml')
-rw-r--r--basicsuite/launchersettings/main.qml38
1 files changed, 27 insertions, 11 deletions
diff --git a/basicsuite/launchersettings/main.qml b/basicsuite/launchersettings/main.qml
index 7cd510c..41054fd 100644
--- a/basicsuite/launchersettings/main.qml
+++ b/basicsuite/launchersettings/main.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: For any questions to Digia, please use the contact form at
** http://qt.digia.com/
**
@@ -44,7 +44,7 @@ import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
Rectangle {
- id: root;
+ id: root
gradient: Gradient {
GradientStop { position: 0; color: "white" }
@@ -76,16 +76,19 @@ Rectangle {
source: "NetworkController.qml"
}
- Flickable {
+ Loader {
+ id: wifiControllerLoader
+ source: "WifiController.qml"
+ }
+
+ ScrollView {
+
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
anchors.margins: margin
anchors.topMargin: 50
height: parent.height
- width: mainLayout.width
-
- contentHeight: mainLayout.height
- contentWidth: mainLayout.width
+ width: mainLayout.width + 40
ColumnLayout {
id: mainLayout
@@ -95,12 +98,12 @@ Rectangle {
GroupBox {
id: powerOptions
- title: "Power Options"
+ title: "Power"
Layout.fillWidth: true
RowLayout {
- id: powerButtonColumn
+ id: powerButtonRow
anchors.fill: parent
@@ -123,7 +126,7 @@ Rectangle {
GroupBox {
id: displayOptions
- title: "Display Options"
+ title: "Display"
Layout.fillWidth: true
@@ -156,7 +159,7 @@ Rectangle {
GroupBox {
id: networkOptions
- title: "Network Options"
+ title: "Network"
Layout.fillWidth: true
@@ -187,6 +190,19 @@ Rectangle {
}
}
+
+ GroupBox {
+ id: wifiOptions
+ title: "Wifi"
+ Layout.fillWidth: true
+ }
+
+ Component.onCompleted: {
+ if (wifiControllerLoader.item != undefined)
+ wifiControllerLoader.item.createWifiGroupBox()
+ else
+ wifiOptions.visible = false
+ }
}
}
}