qt5base-lts/tests/auto/widgets/kernel
Volker Hilsheimer 44fb925f50 Phase 2 of removing QDesktopWidget
Remove QDestopWidget public header, simplify the implementation that
maintains a Qt::Desktop type QWidget for each QScreen, and turn
QWidget's initial target screen into a QScreen pointer.

QApplication::desktop() now takes an optional QScreen pointer, and
returns a QWidget pointer, so that applications and widgets can get
access to the root widget for a specific screen without having to
resort to private APIs.

QDesktopWidgetPrivate implementations to look up a screen for an index,
widget, or point are now all inline functions that thinly wrap
QGuiApplication::screens/screenAt calls. We should consider adding those
as convenience APIs to QScreen instead.

Note that QWidget::screen is assumed to return a valid pointer; there is
code that handles the case that it returns nullptr (but also code that
trusts that it never is nullptr), so this needs to be defined, verified
with tests, and asserted. We can then simplify the code further.

Change-Id: Ifc89be65a0dce265b6729feaf54121c35137cb94
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-06-08 20:29:49 +02:00
..
qaction Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qactiongroup Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qapplication Remove winrt 2020-06-06 20:25:49 +02:00
qboxlayout Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qformlayout Remove winrt 2020-06-06 20:25:49 +02:00
qgesturerecognizer Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qgridlayout Remove deprecated QStyle enum values 2020-04-16 16:53:18 +02:00
qlayout Remove winrt 2020-06-06 20:25:49 +02:00
qshortcut tst_QShortcut: avoid int -> QChar conversions 2020-05-12 07:43:26 +02:00
qsizepolicy Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qstackedlayout Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-11-19 13:53:21 +01:00
qtooltip Merge remote-tracking branch 'origin/dev' into wip/cmake 2019-11-19 13:53:21 +01:00
qwidget Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qwidget_window Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
qwidgetaction Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qwidgetmetatype cmake: add widgets/kernel tests 2019-10-31 09:49:03 +00:00
qwidgetsvariant cmake: add widgets/kernel tests 2019-10-31 09:49:03 +00:00
qwindowcontainer Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Reduce QDesktopWidget API to bare minimum 2020-05-15 18:46:39 +02:00
kernel.pro Reduce QDesktopWidget API to bare minimum 2020-05-15 18:46:39 +02:00