diff options
| author | Morten Sørvig <morten.sorvig@qt.io> | 2024-03-12 13:42:54 +0100 |
|---|---|---|
| committer | Morten Sørvig <morten.sorvig@qt.io> | 2024-03-25 19:52:04 +0100 |
| commit | 6272dddaddafa7f1b555dc8b2d374387fda70b15 (patch) | |
| tree | b76d36519c46eeca6f3ea73fa932be2a97c17166 /src/corelib/serialization/qjsonobject.cpp | |
| parent | 36e65785ec997b0e38aa84ebc3288b7c6d033137 (diff) | |
Fix multiscreen menu popup positioning corner case
A QMenuBar may span multiple screens. Its menus will
then open on the screen which the bottom middle of
the action rect is at, and will snap to that screen's
geometry if needed.
However it can happen that the bottomLeft() of the action
rect is on a different screen from the selected popup
screen, in which case mapping this point to global
coordinates can give incorrect coordinates if the screens
have different scale factors.
The x value will be corrected by the screen snapping
if needed. Use the y from the screen test point, which
will be correct for the selected screen.
Task-number: QTBUG-73231
Change-Id: If9a39f6b832a64f2f701868f2be0d3a6468fe553
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonobject.cpp')
0 files changed, 0 insertions, 0 deletions
