summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxintegration.cpp
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-04-27 19:15:00 +0200
committerMorten Sørvig <morten.sorvig@qt.io>2022-05-19 02:28:38 +0200
commite3201e712444e75d8f23660b23212dea020ba06b (patch)
treeab36098c7d84666406e7baf394bb8b8c0b1ee634 /src/plugins/platforms/qnx/qqnxintegration.cpp
parent2a34d4bc66385a008c334674de870e8a13afd05c (diff)
windows: make native styles support QT_SCALE_FACTORHEADdev
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 'src/plugins/platforms/qnx/qqnxintegration.cpp')
0 files changed, 0 insertions, 0 deletions