diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-04-05 12:39:15 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-04-06 09:42:23 +0000 |
commit | 5e76cb16924a42cb020786f45cc3494dd5836c5c (patch) | |
tree | d07fc1fb83778b9e2ac98ba04a43d14f305ecb89 /sync.profile | |
parent | efb84b6189f9e98c6dd29c22f00ad760445196c2 (diff) |
Fix menu position when highdpi scaling
Certain display and scale factor configurations would
cause menus to pop up in incorrect locations or not
be shown at all.
This was due to QDesktopWidget::screenNumber() having
a toNativePixels(QRect, QWindow) call which requires
that QWindow::screen() returns the correct screen.
Break the circular dependency by converting coordinates
the other way for the intersection test: transform screen
geometry to device independent coordinates.
Task-number: QTBUG-58329
Change-Id: I5621de89a9a2b8df44bdae528baf011fc111eba3
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'sync.profile')
0 files changed, 0 insertions, 0 deletions