Commit 5fd7b55f authored by Aditya Mehra's avatar Aditya Mehra
Browse files

add KDE connect to settings and fix keynav

parent 0ac6c88c
...@@ -189,6 +189,11 @@ FocusScope { ...@@ -189,6 +189,11 @@ FocusScope {
text: i18n("Wireless") text: i18n("Wireless")
icon.name: "network-wireless-connected-100" icon.name: "network-wireless-connected-100"
onTriggered: plasmoid.nativeInterface.executeCommand("plasma-settings -s -m kcm_mediacenter_wifi") onTriggered: plasmoid.nativeInterface.executeCommand("plasma-settings -s -m kcm_mediacenter_wifi")
},
Controls.Action {
text: i18n("KDE Connect")
icon.name: "kdeconnect"
onTriggered: plasmoid.nativeInterface.executeCommand("plasma-settings -s -m kcm_mediacenter_kdeconnect")
} }
] ]
......
...@@ -61,7 +61,7 @@ KCM.SimpleKCM { ...@@ -61,7 +61,7 @@ KCM.SimpleKCM {
} }
} }
Keys.onUpPressed: root.activateDeviceView() Keys.onUpPressed: connectionView.forceActiveFocus()
onClicked: { onClicked: {
Window.window.close() Window.window.close()
...@@ -96,6 +96,7 @@ KCM.SimpleKCM { ...@@ -96,6 +96,7 @@ KCM.SimpleKCM {
title: allDevicesModel.count > 0 ? "Found Devices" : "No Devices Found" title: allDevicesModel.count > 0 ? "Found Devices" : "No Devices Found"
currentIndex: 0 currentIndex: 0
delegate: Delegates.DeviceDelegate{} delegate: Delegates.DeviceDelegate{}
navigationDown: kcmcloseButton
Behavior on x { Behavior on x {
NumberAnimation { NumberAnimation {
duration: Kirigami.Units.longDuration * 2 duration: Kirigami.Units.longDuration * 2
...@@ -113,6 +114,7 @@ KCM.SimpleKCM { ...@@ -113,6 +114,7 @@ KCM.SimpleKCM {
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: -Kirigami.Units.smallSpacing anchors.topMargin: -Kirigami.Units.smallSpacing
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: -Kirigami.Units.smallSpacing
anchors.right: parent.right anchors.right: parent.right
visible: allDevicesModel.count > 0 ? 1 : 0 visible: allDevicesModel.count > 0 ? 1 : 0
anchors.rightMargin: -Kirigami.Units.smallSpacing anchors.rightMargin: -Kirigami.Units.smallSpacing
......
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