Commit fc52d7aa authored by Martin Kacej's avatar Martin Kacej

Real netwroks showing

parent 3c43e9aa
......@@ -3,6 +3,7 @@ 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.networkmanagement 0.2 as PlasmaNM
PlasmaComponents.ListItem {
width: parent.width
......@@ -10,9 +11,19 @@ PlasmaComponents.ListItem {
RowLayout {
width: parent.width
Text {
text: ssid
Layout.fillWidth: true
PlasmaComponents.Label {
id: connectionNameLabel
anchors {
leftMargin: Math.round(units.gridUnit / 2)
}
height: paintedHeight
elide: Text.ElideRight
font.weight: ConnectionState == PlasmaNM.Enums.Activated ? Font.DemiBold : Font.Normal
font.italic: ConnectionState == PlasmaNM.Enums.Activating ? true : false
text: ItemUniqueName
textFormat: Text.PlainText
}
Rectangle {
......
......@@ -45,6 +45,16 @@ Item {
wifiSwitchButton.checked = wifiSwitchButton.enabled && enabled
}
}
PlasmaNM.NetworkModel {
id: connectionModel
}
PlasmaNM.AppletProxyModel {
id: appletProxyModel
sourceModel: connectionModel
}
Column {
id: formLayout
spacing: units.gridUnit
......@@ -109,15 +119,19 @@ Item {
}
ListView {
property bool availableConnectionsVisible: false
property int currentVisibleButtonIndex: -1
anchors.fill: parent
anchors.margins: units.gridUnit
clip: true
width: parent.width
model: TestWifi{
id: wifiTestModel
}
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
model: appletProxyModel
delegate: RowItemDelegate{
id: wifiDelegate
}
}
}
......
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