diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2022-04-27 19:15:00 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-19 02:28:38 +0200 |
commit | e3201e712444e75d8f23660b23212dea020ba06b (patch) | |
tree | ab36098c7d84666406e7baf394bb8b8c0b1ee634 /examples/widgets/effects/blurpicker | |
parent | 2a34d4bc66385a008c334674de870e8a13afd05c (diff) |
windows: make native styles support QT_SCALE_FACTOR
Calculate the native metrics scale factor using DPI from the screen
instead of using devicePixelRatio from the widget.
This way the native metrics scale factor becomes independent
of whatever modifications QtGui applies to the DPR. This matches
its use case of scaling native metrics returned by win32 API.
Task-number: QTBUG-86344
Change-Id: I0d3c73956520e2bc4a56b23ea3cb8e1f0c36fcf1
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/widgets/effects/blurpicker')
0 files changed, 0 insertions, 0 deletions