Commit 7c3521e1 authored by Martin Kacej's avatar Martin Kacej

small layout changes, utils object, new context option

parent d99de4aa
......@@ -87,7 +87,7 @@ Kirigami.ScrollablePage{
connection["mode"] = "infrastructure"
connection["802-11-wireless-security"] = editorSecuritySection.securityMap
console.info(connection)
handler.addConnectionFromQML(connection)
utils.addConnectionFromQML(connection)
console.info('Connection saved '+ connection["id"])
}
}
......@@ -31,6 +31,7 @@ Kirigami.ScrollablePage{
property var settings: ({})
property var activeMap: ({})
Column {
Column {
id: staticInfo
......@@ -112,7 +113,7 @@ Kirigami.ScrollablePage{
}
actions {
right: Kirigami.Action {
iconName: "cancel"
iconName: "dialog-cancel"
onTriggered: {
applicationWindow().pageStack.pop()
}
......
......@@ -5,6 +5,7 @@ import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
import org.kde.kirigami 2.2 as Kirigami
Kirigami.ScrollablePage {
anchors.leftMargin: Kirigami.Units.largeSpacing * 2
header: RowLayout {
id: layoutrow
......@@ -40,7 +41,7 @@ Kirigami.ScrollablePage {
width: parent.width
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
header: Text {
header: Controls.Label {
text: "Available networks"
}
model: mobileProxyModel
......@@ -63,6 +64,45 @@ Kirigami.ScrollablePage {
onTriggered: {
showPassiveNotification("Open tethering")
}
},
Kirigami.Action {
iconName: "edit"
text: "Saved Connections"
checkable: true
checked: false
onTriggered: {
mobileProxyModel.showSavedMode = checked
}
}
]
/*
footer: Controls.Button {
width: parent.width
text: "ContextualActions"
iconName: "edit"
onClicked: bottomDrawer.open()
}
Kirigami.OverlayDrawer {
id: bottomDrawer
edge: Qt.BottomEdge
contentItem: Item {
implicitHeight: childrenRect.height + Kirigami.Units.gridUnit
ColumnLayout{
anchors.centerIn: parent
Controls.Button {
text: "Add custom connection"
onClicked: applicationWindow().pageStack.push(connectionEditorDialogComponent)
}
Controls.Button {
text: "Create Hotspot"
onClicked: showPassiveNotification("Open tethering")
}
Item {
Layout.minimumHeight: Units.gridUnit * 4
}
}
}
}
*/
}
......@@ -24,8 +24,6 @@ import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
PlasmaComponents.TextField {
property int securityType
height: implicitHeight; width: units.gridUnit * 15
echoMode: TextInput.Password
revealPasswordButtonShown: true
placeholderText: i18n("Password...")
......
......@@ -51,6 +51,10 @@ Kirigami.ApplicationItem {
id: connectionModel
}
PlasmaNM.MobileUtils{
id: utils
}
PlasmaNM.MobileProxyModel {
id: mobileProxyModel
sourceModel: connectionModel
......
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