diff --git a/components/mobileshell/qml/actiondrawer/private/QuickSettingsDelegate.qml b/components/mobileshell/qml/actiondrawer/private/QuickSettingsDelegate.qml index 6bcfecf7..ab9b9633 100644 --- a/components/mobileshell/qml/actiondrawer/private/QuickSettingsDelegate.qml +++ b/components/mobileshell/qml/actiondrawer/private/QuickSettingsDelegate.qml @@ -26,6 +26,11 @@ MobileShell.BaseItem { required property string text required property string status required property string icon + // Visual active-state of the tile. Declared here to shadow the built-in + // Item.enabled: binding the real Item.enabled would disable the contentItem + // MouseArea, making an inactive tile impossible to tap (and thus turn on). + // Tiles are removed from the list via `available`, never disabled. + required property bool enabled required property string settingsCommand required property var toggleFunction diff --git a/components/mobileshell/qml/actiondrawer/private/QuickSettingsStatusRow.qml b/components/mobileshell/qml/actiondrawer/private/QuickSettingsStatusRow.qml index 0729f8dc..2e77029f 100644 --- a/components/mobileshell/qml/actiondrawer/private/QuickSettingsStatusRow.qml +++ b/components/mobileshell/qml/actiondrawer/private/QuickSettingsStatusRow.qml @@ -18,6 +18,10 @@ Item { required property string text required property string status required property string icon + // Visual active-state only. Shadows the built-in Item.enabled so binding it + // does not disable the inner toggle/detail MouseAreas (which would make an + // inactive service impossible to switch on). + required property bool enabled required property var toggleFunction property bool compact: false