battery: Improve the brightness responsiveness

Authored by apol on Dec 16 2019, 1:13 AM.

Description

battery: Improve the brightness responsiveness

Summary:
Use QQC2.Slider, so that we have a moved signal. This way we can only
issue new brightnesses when the user actually interacts with it.
Don't adapt to the system brightness until we have finished interacting
with it.

Test Plan:
Manual testing, flickering is very much reduced both when scrolling over the
compact plasmoid as well as the slider.

Reviewers: Plasma, broulik

Reviewed By: Plasma, broulik

Subscribers: plasma-devel

Tags: Plasma

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

Details

Committed
apolDec 31 2019, 4:32 AM
Reviewer
Plasma
Differential Revision
D26035: battery: Improve the brightness responsiveness
Parents
R120:500192a7aeb2: Merge branch 'Plasma/5.17'
Branches
Unknown
Tags
Unknown