qt5base-lts/tests/auto/widgets/kernel
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
..
qaction Send ShortcutOverride event when receiving a non-spontaneous key press 2018-04-20 10:18:49 +00:00
qactiongroup qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qapplication Merge remote-tracking branch 'origin/5.11' into 5.12 2018-09-30 01:00:19 +02:00
qboxlayout Merge remote-tracking branch 'origin/5.11' into dev 2018-04-26 09:55:10 +02:00
qdesktopwidget Updated license headers 2016-01-21 18:55:18 +00:00
qformlayout winrt: make widgets/kernel auto tests pass 2018-06-22 05:02:45 +00:00
qgesturerecognizer tests: un-blacklist tst_QGestureRecognizer::panGesture on xcb 2018-06-25 13:41:40 +00:00
qgridlayout tests/auto/widgets/kernel: Avoid unconditional qWait()s 2018-04-24 05:01:57 +00:00
qlayout winrt: make widgets/kernel auto tests pass 2018-06-22 05:02:45 +00:00
qshortcut tests/auto/widgets/kernel: Avoid unconditional qWait()s 2018-04-24 05:01:57 +00:00
qsizepolicy Fix tst_QSizePolicy::constExpr() to compile with MSVC 15.8.1 2018-08-30 06:23:51 +00:00
qstackedlayout tests/auto/widgets/kernel: Avoid unconditional qWait()s 2018-04-24 05:01:57 +00:00
qtooltip QToolTip: Don't crash if a tool tip is shown outside screen geometry 2018-10-15 07:44:04 +00:00
qwidget Extend opensuse blacklistings to opensuse-leap 2018-09-11 12:11:45 +00:00
qwidget_window QWidgetWindow: Ensure Qt::WA_Mapped is set on obscured parent widgets 2018-08-21 13:18:07 +00:00
qwidgetaction testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qwidgetmetatype Updated license headers 2016-01-21 18:55:18 +00:00
qwidgetsvariant Updated license headers 2016-01-21 18:55:18 +00:00
qwindowcontainer winrt: make widgets/kernel auto tests pass 2018-06-22 05:02:45 +00:00
kernel.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00