Diffusion Krita 5b920351a9d9

Make color selector aware of UI scaling

Authored by mwein on Jan 8 2020, 2:25 AM.

Description

Make color selector aware of UI scaling

Qt virtualizes the coordinate system and keeps it independent
of (Hi-DPI) UI scaling, that helps to not break applications
not aware of this feature, but automatically upscaled images
of course are not very nice especially with fractional factors.

This commit tries to properly determine the true device pixel amounts
and renders the selector at this resolution.

Note: fractional scaling needs thorough testing with Qt 5.14,
earlier versions are know to still have many rendering glitches.
Only tested with Qt 5.12 and QT_SCALE_FACTOR environment variable so far.

Details

Committed
mweinMar 24 2020, 9:29 PM
Parents
R37:464ca9bcf22d: Pass QPointF to widget->shape conversion function
Branches
Unknown
Tags
Unknown