qt5base-lts/tests/auto/widgets
Johan Klokkhammer Helsing 02a2144427 QToolTip: Don't crash if a tool tip is shown outside screen geometry
In some cases, a tool tip may be shown outside screen geometry, i.e. if:

- QToolTip::showText is invoked manually with a position outside.
- In tst_QToolTip::setPalette if there is no screen at (0, 0). This might
  happen in a multi-monitor setups where one screen is taller than the other.
- On Wayland windows are (by design) not allowed to know their position on
  the screen. This means that global positions can't be trusted.

This started crashing when QDesktopWidget::screenGeometry(pos) was replaced
with QGuiApplication::screenAt(pos)->geometry() because screenAt will return
null if no screen is found, while screenGeometry defaulted to the primary
screen.

This reverts to the old behavior of falling back to the primary screen.

This won't solve the issue completely for the Wayland case, but at least we
will stop crashing.

Change-Id: I42dd07cc21c2f9f0ea0d69f0c25bd46d8a2615a0
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2018-10-15 07:44:04 +00:00
..
dialogs Remove insignificant flag from qcolordialog.pro 2018-09-24 21:12:38 +00:00
effects Blacklist flaky tst_QGraphicsEffect autotest on openSUSE 2018-09-24 21:13:20 +00:00
graphicsview QGraphicsScene: Make focusing on touchBegin optional 2018-10-04 07:00:21 +00:00
itemviews Update ANGLE to chromium/3280 2018-10-13 21:36:35 +00:00
kernel QToolTip: Don't crash if a tool tip is shown outside screen geometry 2018-10-15 07:44:04 +00:00
styles StyleSheetStyle: Load @Nx images 2018-10-04 07:01:05 +00:00
util winrt: Make widgets/util auto tests pass 2018-05-25 11:02:23 +00:00
widgets tst_QMdiSubWindow: fix flaky setOpaqueResizeAndMove test 2018-09-15 15:39:21 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00