qt6-bb10/src/plugins/styles
Friedemann Kleint d603ee689f Widget style: Use per-screen DPI in QStyleHelper::dpiScaled()
Pass the style option to dpiScaled() in order to get
the correct screen DPI. The style option contains the
font, which again contains the current DPI value.

Add QFontMetrics::fontDpi() accessors to get the DPI
from the QFont. This DPI will/should be updated on screen
change.

Replace hardcoded Q_OS_MAC DPI with hardcoded base
DPI. This makes per-screen DPI testable on macOS, too.

Task-number: QTBUG-45055
Change-Id: I75f8b37d45eb50c3334b46b8469a546d29712f1b
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2019-08-23 01:41:33 +00:00
..
android Use Q_DISABLE_COPY_MOVE for private classes 2018-12-12 07:23:54 +00:00
mac Widget style: Use per-screen DPI in QStyleHelper::dpiScaled() 2019-08-23 01:41:33 +00:00
windowsvista Widget style: Use per-screen DPI in QStyleHelper::dpiScaled() 2019-08-23 01:41:33 +00:00
styles.pro