qt5base-lts/tests/auto/gui
Morten Johan Sørvig 776734576c Call updateHighDpiScaling() on screenAdded()
QHighDpiScaling has two init/update functions:
 - initHighDpiScaling(): called once during QGuiApplication construction
 - updateHighDpiScaling(): called whenever (relevant) screen configuration changes

Currently the calls to updateHighDpiScaling() are made from
multiple places including platform code. Simplify by calling
it from two locations:
	- QWindowSystemInterface::handleScreenAdded()
	- QGuiApplicationPrivate::processScreenLogicalDotsPerInchChange()

Replace comment about early calls to qt_defaultDpi with a
test which calls qt_defaultDpiX/Y with no screens attached.
(Looking at the qt_defaultDpiX() implementation, it is unlikely
that there will be a problem as long as updateHighDpiScaling()
is called before QGuiApplication::primaryScreen() starts returning
a non-null value.)

Change-Id: I447db42894617495843a5cb531a1322b000fed62
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-04-28 18:23:39 +02:00
..
image Fix tst_qicon for fractional dpr 2021-04-20 21:33:00 +02:00
itemmodels Move QEMU emulation detector to QTest 2021-02-13 10:02:51 +02:00
kernel Call updateHighDpiScaling() on screenAdded() 2021-04-28 18:23:39 +02:00
math3d Fix warnings about lossy double/float conversion in tests 2021-04-11 19:53:32 +02:00
painting Android: unblock passing tests 2021-04-27 21:12:50 +03:00
qopengl Skip tst_QOpenGL::glxContext test on Wayland 2021-03-11 11:58:42 +01:00
qopenglconfig Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvulkan tst_qvulkan: Skip assumption about supportedApiVersion 2021-01-21 17:00:32 +01:00
rhi Android: unblock passing tests 2021-04-27 21:12:50 +03:00
text Fix warnings about lossy double/float conversion in tests 2021-04-11 19:53:32 +02:00
util QTextureFileData: support key value metadata 2021-02-09 13:39:47 +01:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00