Change UI for setting jpeg quality to slider

Authored by MrPepe on Oct 1 2019, 12:28 PM.

Description

Change UI for setting jpeg quality to slider

Summary:
D23106 added a spinner box to set a save quality for JPEG images. I changed it to a slider to be consistent with the same functionality in Spectacle, but I didn't use the ticks because it makes the slider me misaligned with the respective label. Also, I used % as the label unit. I think it is more clear and will therefore propose the same for Spectacle.

I did not really understand how in the original commit the value from the spinner box was saved to the config, so I set it explicitly when the slider value changes.

Test Plan:
Set high quality in settings, don't change in save dialog -> Output image has high quality
Set high quality in settings, override in save dialog with low quality -> Output image has low quality
Set low quality in settings, don't change in save dialog -> Output image has low quality
Set low quality in settings, override in save dialog with high quality -> Output image has high quality

Reviewers: ngraham, VDG, Gwenview

Reviewed By: ngraham, VDG, Gwenview

Subscribers: Spectacle

Tags: Gwenview

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

Details

Committed
ngrahamOct 2 2019, 1:49 PM
Reviewer
VDG
Differential Revision
D24309: Change UI for setting jpeg quality to slider
Parents
R260:de3beda1a9a1: Include missing header
Branches
Unknown
Tags
Unknown