qt5base-lts/tests/auto/widgets/graphicsview
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
..
qgraphicsanchorlayout QGraphicsAnchorLayout: port to QHVContainer [4/4]: sweep Orientation -> Qt::Orientation 2020-05-09 08:24:04 +02:00
qgraphicsanchorlayout1 Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qgraphicseffectsource Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qgraphicsgridlayout Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
qgraphicsitem Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qgraphicsitemanimation Merge remote-tracking branch 'origin/dev' into wip/cmake 2020-01-29 16:57:27 +01:00
qgraphicslayout Regenerate tests/auto/widgets/graphicsview 2019-11-13 10:06:43 +00:00
qgraphicslayoutitem Regenerate tests/auto/widgets/graphicsview 2019-11-13 10:06:43 +00:00
qgraphicslinearlayout Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
qgraphicsobject Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qgraphicspixmapitem Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qgraphicspolygonitem Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qgraphicsproxywidget Merge remote-tracking branch 'origin/wip/cmake' into dev 2020-02-13 23:29:51 +01:00
qgraphicsscene Remove winrt 2020-06-06 20:25:49 +02:00
qgraphicssceneindex Remove winrt 2020-06-06 20:25:49 +02:00
qgraphicstransform Regenerate tests/auto/widgets/graphicsview 2019-11-13 10:06:43 +00:00
qgraphicsview Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qgraphicswidget Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
graphicsview.pro Remove winrt 2020-06-06 20:25:49 +02:00