summaryrefslogtreecommitdiffstats
path: root/src/settingsui
diff options
context:
space:
mode:
authorKimmo Ollila <kimmo.ollila@theqtcompany.com>2016-03-11 12:13:23 +0200
committerKimmo Ollila <kimmo.ollila@theqtcompany.com>2016-03-16 13:45:15 +0000
commit6fce9f1c37c6e7042f90a4a2428674794cb92a02 (patch)
tree45a04a59972a7c22d1b316d259f264bfd8bee363 /src/settingsui
parent0aab56ca5eea0ba4df48258f1a1c866d21bb9bce (diff)
Change network interface selection button to RadioButton
Change-Id: I70f9ed5b6f3ecfd3d075d9f541efc1099d6a3617 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'src/settingsui')
-rw-r--r--src/settingsui/network/NetworkSettings.qml42
1 files changed, 25 insertions, 17 deletions
diff --git a/src/settingsui/network/NetworkSettings.qml b/src/settingsui/network/NetworkSettings.qml
index d516426..4fb1c0f 100644
--- a/src/settingsui/network/NetworkSettings.qml
+++ b/src/settingsui/network/NetworkSettings.qml
@@ -77,30 +77,38 @@ Item {
Repeater {
model: NetworkSettingsManager.interfaces
- Button {
+ RadioButton {
+ id: btn
Layout.fillWidth: true
implicitHeight: 54
checkable: true
- label: Row {
+ label: Rectangle {
+ color: checked ? "#80c342" : "white"
+ border.color: "#bdbebf"
+ border.width: 1
anchors.fill: parent
- spacing: 10
- Image {
- id: typeId
- height: parent.height
- width: height
- }
- Column {
- height: parent.height * .7
- spacing: 0
- anchors.verticalCenter: parent.verticalCenter
- Label {
- text: name
+ Row {
+ anchors.fill: parent
+ spacing: 10
+
+ Image {
+ id: typeId
+ height: parent.height
+ width: height
}
- Label {
- text: networkSelect.stateToStr(modelData.state)
- font.pixelSize: 12
+ Column {
+ height: parent.height * .7
+ spacing: 0
+ anchors.verticalCenter: parent.verticalCenter
+ Label {
+ text: name
+ }
+ Label {
+ text: networkSelect.stateToStr(modelData.state)
+ font.pixelSize: 12
+ }
}
}
}