qt6-bb10/src/plugins
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
..
bearer Short live qt_unique_lock/qt_scoped_lock! (until C++17) 2019-08-13 05:05:59 +00:00
doc/snippets/code Doc: Move literal code block to a separate file 2018-10-15 10:55:18 +00:00
generic Add a few qAsConst() to range-for to prevent detachments 2018-12-10 11:47:28 +00:00
imageformats Merge remote-tracking branch 'origin/5.13' into dev 2019-07-10 10:39:33 +02:00
platforminputcontexts Merge remote-tracking branch 'origin/5.13' into dev 2019-04-27 01:00:11 +02:00
platforms Move QT_FONT_DPI to cross-platform code 2019-08-23 03:40:53 +02:00
platformthemes More nullptr usage in headers 2019-03-14 07:37:52 +00:00
printsupport Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
sqldrivers Port from QStringViewLiteral to u"" 2019-07-29 11:17:28 +03:00
styles Widget style: Use per-screen DPI in QStyleHelper::dpiScaled() 2019-08-23 01:41:33 +00:00
plugins.pro