mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
port item delegates iconName to icon.name
This commit is contained in:
parent
194b26c8a2
commit
6d22b48cc4
2 changed files with 5 additions and 5 deletions
|
|
@ -66,24 +66,24 @@ Kirigami.SwipeListItem {
|
||||||
|
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "network-connect"
|
icon.name: "network-connect"
|
||||||
visible: ConnectionState != PlasmaNM.Enums.Activated
|
visible: ConnectionState != PlasmaNM.Enums.Activated
|
||||||
onTriggered: changeState()
|
onTriggered: changeState()
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "network-disconnect"
|
icon.name: "network-disconnect"
|
||||||
visible: ConnectionState == PlasmaNM.Enums.Activated
|
visible: ConnectionState == PlasmaNM.Enums.Activated
|
||||||
onTriggered: handler.deactivateConnection(ConnectionPath, DevicePath)
|
onTriggered: handler.deactivateConnection(ConnectionPath, DevicePath)
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "configure"
|
icon.name: "configure"
|
||||||
visible: (Uuid != "")? true : false
|
visible: (Uuid != "")? true : false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
kcm.push("NetworkSettings.qml", {path: ConnectionPath})
|
kcm.push("NetworkSettings.qml", {path: ConnectionPath})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
iconName: "entry-delete"
|
icon.name: "entry-delete"
|
||||||
visible: (Uuid != "")? true : false
|
visible: (Uuid != "")? true : false
|
||||||
onTriggered: handler.removeConnection(ConnectionPath)
|
onTriggered: handler.removeConnection(ConnectionPath)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ ScrollViewKCM {
|
||||||
text: i18n("Wi-Fi is disabled")
|
text: i18n("Wi-Fi is disabled")
|
||||||
icon.name: "network-wireless-disconnected"
|
icon.name: "network-wireless-disconnected"
|
||||||
helpfulAction: Kirigami.Action {
|
helpfulAction: Kirigami.Action {
|
||||||
iconName: "network-wireless-connected"
|
icon.name: "network-wireless-connected"
|
||||||
text: i18n("Enable")
|
text: i18n("Enable")
|
||||||
onTriggered: handler.enableWireless(true)
|
onTriggered: handler.enableWireless(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue