Commit d0fffa46 authored by Nate Graham's avatar Nate Graham 💤
Browse files

[KCMs/Workspace] Add explanatory labels for click-related settings

Summary: This way the behavior of the related action is clear no matter which setting is chosen.

Reviewers: #vdg, #plasma, Fuchs, ndavis

Reviewed By: #vdg, Fuchs, ndavis

Subscribers: davidedmundson, ndavis, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25873
parent 1e4271fb
......@@ -121,13 +121,20 @@ KCM.SimpleKCM {
QQC2.RadioButton {
id: doubleClick
text: i18n("Double-click to open files and folders (single click to select)")
text: i18n("Double-click to open files and folders")
enabled: !kcm.globalsSettings.isImmutable("singleClick")
checked: !kcm.globalsSettings.singleClick
onToggled: kcm.globalsSettings.singleClick = false
QQC2.ButtonGroup.group: singleClickGroup
}
QQC2.Label {
Layout.fillWidth: true
text: singleClick.checked ? i18n("Select by clicking on item's selection marker") : i18n("Select by single-clicking")
elide: Text.ElideRight
font.pointSize: theme.smallestFont.pointSize
}
Item {
Kirigami.FormData.isSection: false
}
......@@ -154,5 +161,17 @@ KCM.SimpleKCM {
onToggled: kcm.globalsSettings.scrollbarLeftClickNavigatesByPage = false
QQC2.ButtonGroup.group: scrollHandleBehaviorGroup
}
// Don't show a label for what middle-clicking does when using the
// "click to zoom the handle" behavior because Qt doesn't invert the
// middle-click functionality when using this; see
// https://bugreports.qt.io/browse/QTBUG-80728
QQC2.Label {
Layout.fillWidth: true
visible: scrollbarLeftClickNavigatesByPage.checked
text: i18n("Middle-click to scroll to clicked location")
elide: Text.ElideRight
font.pointSize: theme.smallestFont.pointSize
}
}
}
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