diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-07-21 15:19:00 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2025-07-30 01:12:29 +0200 |
| commit | a6f30f34eca890c80f870eae296fd3b848c97774 (patch) | |
| tree | c1fa90bd1f2fd89395334785604a5c79fd10b37e /src/corelib/kernel/qmetaobjectbuilder.cpp | |
| parent | e53cbad7419160018fd95ad55efa6ca31b8848eb (diff) | |
QPA: Construct GeometryChangeEvent with old native geometry
Amends 2fea6bbe8e822b3fb59a7f74c0165e7a8aeb727a, which moved the
construction of the event object after the QPlatformWindow::geometry had
been updated already. Since the constructor takes that stored geometry
to compute the requested geometry, this resulted in a behavior change.
Fix this by adding a constructor parameter that takes the requested
geometry, and move the High-DPI mapping consistently to the call-site.
As a drive-by, replace const QRect & parameters with QRect values, as
QRect is small and trivially copyable/movable.
Task-number: QTBUG-136045
Pick-to: 6.10 6.9 6.8
Change-Id: Ie44060d299dac9b63b8b6ba8c1e07f3e422dbe03
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Viktor Arvidsson <viktor.arvidss@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qmetaobjectbuilder.cpp')
0 files changed, 0 insertions, 0 deletions
