Make renderDialGroove() area match the maximum renderDialContents() area
ClosedPublic

Authored by ndavis on Sep 16 2019, 8:38 PM.

Details

Summary

It bothered me that the groove for dials doesn't match the maximum area that the contents can use.

Test Plan

Old:

New:

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ndavis created this revision.Sep 16 2019, 8:38 PM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 16 2019, 8:38 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ndavis requested review of this revision.Sep 16 2019, 8:38 PM
ndavis edited the test plan for this revision. (Show Details)Sep 16 2019, 8:41 PM

Doesn't this mean that the visual appearance of the dial will change depending on what the maximum value is?

ndavis added a comment.EditedSep 16 2019, 9:12 PM

Doesn't this mean that the visual appearance of the dial will change depending on what the maximum value is?

No, you can apply this patch and apply whatever maximum value you want to a dial in Qt Designer and the appearance will be the same. This is because the minimum and maximum values are converted to degrees. The only thing that will change is the number of steps that the handle can stop at.

ngraham accepted this revision.Sep 17 2019, 1:59 PM
This revision is now accepted and ready to land.Sep 17 2019, 1:59 PM
ndavis updated this revision to Diff 66312.Sep 17 2019, 4:40 PM

Remove extra declaration of first

This revision was automatically updated to reflect the committed changes.

Problem with the new design if you ask me is that it does not convey the information that you can roll around past the maximum as in a circle anymore.
All other widget styles (except now breeze), use a circle metaphor for a dial ... Personally I think the new look just looks ... broken. It looks like a bent scrollbar, (or a bent slider), which a dial is not ...

on the other hand, after checking that the dials keep the old appearance when "wrapping" is turned on, and since dials are rather seldom used anyway, I have no strong feeling against the change (still prefer the old look though)