Fixes a visual glitch with badge scaling on high DPI screens
Also use qreal api for dpr in a few places
| No Linters Available |
| No Unit Test Coverage |
| Buildable 478 | |
| Build 478: arc lint + arc unit |
Thanks for the patch! Conceptually, this makes sense to me. Can you attach some before-and-after screenshots showing the impact of the change?
Does this fix any Bugzilla tickets?
| src/kitemviews/kfileitemmodelrolesupdater.cpp | ||
|---|---|---|
| 555 | Should this also use devicePixelRatioF()? | |
| src/kitemviews/kfileitemmodelrolesupdater.cpp | ||
|---|---|---|
| 555 | QGuiApplication::devicePixelRatio() already returns qreal. | |
I've tested this patch and it seems to affect emblem scaling for non-integer HiDPI scale factors. However the behavior is inconsistent: for example the degree of emblem scaling differs between folders in my home directory and the items in the network browser (remote:/). This can be seen most clearly when using Icons View and making the icons as big as possible.
@abrahams, can you clarify what issues this patch fixes and how it can be tested?