qt6-bb10/src/openglwidgets
David Edmundson ab449c205c Introduce events for Window device pixel ratio changes
There is a mix between screen device pixel ratio. Currently we store the
property on a per-window basis, but the change notifications are still
on a per screen basis which can fall apart on edge cases.

On wayland we are getting per window DPR changes without as useful
screen change events so it's important to fix. It also has potential to
clean up the Windows backend in the future where the backend is
currently papering over the two concepts.

This patch introduces two new events:

A QWindowSystemInterface to trigger a window DPR change
independently of a screen change.

An event to notify windows the new DPR rather than needing to track
signals on the screen. This happens either when the window dpr changes
or implicitly through a screen change. This can deprecate an existing
event ScreenChangeInternal so the value is reused and renamed for
clarity.

Change-Id: I637a07fd4520ba3184ccc2c987c29d8d23a65ad3
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2023-02-13 16:00:13 +00:00
..
CMakeLists.txt src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
qopenglwidget.cpp Introduce events for Window device pixel ratio changes 2023-02-13 16:00:13 +00:00
qopenglwidget.h Add missing underlying type and Q_ENUM to QOpenGLWidget enums 2023-01-26 17:39:10 +01:00
qtopenglwidgetsglobal.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00