Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 31982c50 authored by Martin Kacej's avatar Martin Kacej

List with networks transfered to separate file

parent cbd0dc98
import QtQuick 2.6
import QtQuick.Controls 2.2 as Controls
import QtQuick.Layouts 1.2
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kirigami 2.2 as Kirigami
Kirigami.ScrollablePage {
header: RowLayout {
id: layoutrow
width: parent.width
Controls.Label {
anchors.left: parent.left
text: i18n("Wifi")
Layout.fillWidth: true
}
Controls.Switch {
id: wifiSwitchButton
checked: enabled && enabledConnections.wirelessEnabled
enabled: enabledConnections.wirelessHwEnabled
onClicked: {
handler.enableWireless(checked);
}
}
Kirigami.Separator {
id: separator
anchors.top: layoutrow.bottom
width: parent.width
}
}
ListView {
id: view
anchors.fill: parent
clip: true
width: parent.width
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
model: mobileProxyModel
delegate: RowItemDelegate {}
}
actions.contextualActions: [
Kirigami.Action {
iconName: "edit"
text:"Add custom connection"
onTriggered: {
applicationWindow().pageStack.push(connectionEditorDialogcomponent)
}
},
Kirigami.Action {
iconName: "edit"
text: "Create Hotspot"
onTriggered: {
showPassiveNotification("Open tethering")
}
}
]
}
......@@ -20,8 +20,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.2 as Controls
import QtQuick.Layouts 1.2
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kirigami 2.2 as Kirigami
......@@ -58,65 +56,9 @@ Kirigami.ApplicationItem {
sourceModel: connectionModel
}
Kirigami.ScrollablePage {
NetworkListView{
id: formLayout
anchors.fill: parent
header: RowLayout {
id: layoutrow
width: parent.width
Controls.Label {
anchors.left: parent.left
text: i18n("Wifi")
Layout.fillWidth: true
}
Controls.Switch {
id: wifiSwitchButton
checked: enabled && enabledConnections.wirelessEnabled
enabled: enabledConnections.wirelessHwEnabled
onClicked: {
handler.enableWireless(checked);
}
}
Kirigami.Separator {
id: separator
anchors.top: layoutrow.bottom
width: parent.width
}
}
ListView {
id: view
anchors.fill: parent
clip: true
width: parent.width
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
model: mobileProxyModel
delegate: RowItemDelegate {}
}
actions.contextualActions: [
Kirigami.Action {
iconName: "edit"
text:"Add custom connection"
onTriggered: {
applicationWindow().pageStack.push(connectionEditorDialogcomponent)
}
},
Kirigami.Action {
iconName: "edit"
text: "Create Hotspot"
onTriggered: {
showPassiveNotification("Open tethering")
}
}
]
}
Component {
......
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