diff options
| author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2014-02-18 14:32:33 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-26 12:58:00 +0100 |
| commit | 9d2d4ad4833ac815eda9c99eb97d421234a0c4cd (patch) | |
| tree | dee975784115d0b09feccb3faea555c0b679b290 /src/network/access/qspdyprotocolhandler.cpp | |
| parent | 66e5f8e9dcd11d136b707d13c7597019c99c54b8 (diff) | |
Cocoa: Fix popup window positioning.
Popup window positions where offset on retina MacBooks
with an connected external monitor.
Fix this by cleaning up the coordinate conversion
functions:
Remove the qt_mac_flipRect overload which tries
to position the window according screen size. This
functionality does not belong inside a coordinate/
type conversion function. Also, it was using the windows's
screen instead of the main screen which is incorrect.
"Y flipping": Use the height of the first screen in
[NSScreen screens], which is documented to always
be the screen that contains the coordinate system
origin. Remove the usages of QApplication::primaryScreen()
("Don't use Qt to implement Qt").
Task-number: QTBUG-36672
Change-Id: I2354d31361f5a4c2c80035cf4c7def939218406f
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/network/access/qspdyprotocolhandler.cpp')
0 files changed, 0 insertions, 0 deletions
