[Workspace KCM] Expose setting to choose what left-clicking in the scrollbar…

Authored by ngraham on Nov 17 2019, 11:43 PM.

Description

[Workspace KCM] Expose setting to choose what left-clicking in the scrollbar track does

Summary:
This patch exposes a UI for choosing what happens when you left-click in the scrollbar
track in a Qt or KDE app. The default behavior is unchanged (left-click to page up/page
down) but now you can choose to warp the scroll handle straight to the clicked position.

Having this setting in the Workspace KCM opens the door to later making it also change
the behavior for GTK apps as well, allowing us to remove one more setting from the GTK
KCM and bringing us one step closer to finishing T10611: Set options for GTK apps in the respective KCMs.

BUG: 379498
FIXED-IN: 5.18.0

Depends on D25360

Test Plan:

  • Apply D25360
  • Click on "Scrolls to the clicked location" in the KCM
  • Click in the scrollbar track in a Qt/KDE app
  • See that the scroll handle position jumps right there
  • Click on "Scrolls one page up or down" in the KCM
  • Click in the scrollbar track in a Qt/KDE app
  • See that the scroll handle moves up or down by one page height

Reviewers: Plasma, VDG, ndavis

Reviewed By: VDG, ndavis

Subscribers: GB_2, davidedmundson, ndavis, gikari, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D25361

Details

Committed
ngrahamDec 2 2019, 6:19 PM
Reviewer
VDG
Differential Revision
D25361: [Workspace KCM] Expose setting to choose what left-clicking in the scrollbar track does
Parents
R119:8f8fe2c23ed1: Remove unneeded moc include
Branches
Unknown
Tags
Unknown