Commit f6d3ec9a authored by David Edmundson's avatar David Edmundson

Accessible roles on Plasma NM toolbar checkboxes

Test Plan: Tested with orca

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D7800
parent b425446e
......@@ -28,6 +28,7 @@ Item {
property alias icon: switchButtonIcon.source
property alias checked: switchButtonCheckbox.checked
property alias enabled: switchButtonCheckbox.enabled
property alias tooltip: switchButtonCheckbox.tooltip
signal clicked
......@@ -36,7 +37,6 @@ Item {
PlasmaComponents.CheckBox {
id: switchButtonCheckbox
anchors {
bottomMargin: Math.round(units.gridUnit / 3)
left: parent.left
......
......@@ -66,6 +66,7 @@ Item {
checked: enabled && enabledConnections.wirelessEnabled
enabled: enabledConnections.wirelessHwEnabled && availableDevices.wirelessDeviceAvailable && !planeModeSwitchButton.airplaneModeEnabled
tooltip: i18n("Enable wireless")
icon: enabled ? "network-wireless-on" : "network-wireless-off"
visible: availableDevices.wirelessDeviceAvailable
......@@ -79,6 +80,7 @@ Item {
checked: enabled && enabledConnections.wwanEnabled
enabled: enabledConnections.wwanHwEnabled && availableDevices.modemDeviceAvailable && !planeModeSwitchButton.airplaneModeEnabled
tooltip: i18n("Enable mobile network")
icon: enabled ? "network-mobile-on" : "network-mobile-off"
visible: availableDevices.modemDeviceAvailable
......@@ -93,6 +95,7 @@ Item {
property bool airplaneModeEnabled: false
checked: airplaneModeEnabled
tooltip: i18n("Enable airplane mode")
icon: airplaneModeEnabled ? "network-flightmode-on" : "network-flightmode-off"
onClicked: {
......
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