qt6-bb10/src/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
..
kernel.pri Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
mac.pri Remove unused *-mwerks scope 2019-04-04 08:01:29 +00:00
qaction_widgets.cpp Fix build without features.shortcut 2020-06-05 10:23:48 +09:00
qaction_widgets_p.h Fix build without features.menu 2020-06-04 01:52:21 +09:00
qapplication.cpp Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qapplication.h Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qapplication_p.h Merge QGuiShortcut and QShortcut again in QtGui 2020-03-29 19:31:14 +01:00
qboxlayout.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qboxlayout.h
qdesktopwidget.cpp Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qdesktopwidget_p.h Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qformlayout.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qformlayout.h
qgesture.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qgesture.h
qgesture_p.h Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
qgesturemanager.cpp macOS: Remove all use of deprecated Q_OS_OSX define 2020-04-03 13:44:37 +02:00
qgesturemanager_p.h Prevent instantiation of QGestureManager in ~QWidget, ~QGraphicsItem() 2018-10-03 09:13:56 +00:00
qgesturerecognizer.cpp Fix memory leak when unregistering a gesture recognizer 2019-03-19 10:41:26 +00:00
qgesturerecognizer.h
qgridlayout.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qgridlayout.h
qlayout.cpp Remove deprecated members from QtWidgets/kernel classes 2020-04-16 16:53:50 +02:00
qlayout.h Remove deprecated members from QtWidgets/kernel classes 2020-04-16 16:53:50 +02:00
qlayout_p.h Take widget content margin into account for menu bar size calculation 2019-11-15 14:15:24 +01:00
qlayoutengine.cpp Remove dead code from src/widgets 2020-05-11 11:05:15 +02:00
qlayoutengine_p.h Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
qlayoutitem.cpp Remove dead code from src/widgets 2020-05-11 11:05:15 +02:00
qlayoutitem.h Remove dead code from src/widgets 2020-05-11 11:05:15 +02:00
qmacgesturerecognizer.cpp Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
qmacgesturerecognizer_p.h Merge remote-tracking branch 'origin/5.11' into dev 2018-05-03 14:50:22 +02:00
qshortcut_widgets.cpp Merge QGuiShortcut and QShortcut again in QtGui 2020-03-29 19:31:14 +01:00
qsizepolicy.cpp Change qHash() to work with size_t instead of uint 2020-04-09 20:03:25 +02:00
qsizepolicy.h Remove dead code from src/widgets 2020-05-11 11:05:15 +02:00
qstackedlayout.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qstackedlayout.h
qstandardgestures.cpp Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
qstandardgestures_p.h
qt_widgets_pch.h QAction: Properly port to the new configure system 2019-11-01 20:09:28 +01:00
qtestsupport_widgets.cpp Remove deprecated QTest::qWaitForWindowShown overload for QtWidgets 2020-04-17 20:49:18 +02:00
qtestsupport_widgets.h Remove deprecated QTest::qWaitForWindowShown overload for QtWidgets 2020-04-17 20:49:18 +02:00
qtooltip.cpp Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qtooltip.h Port QT_NO_TOOLTIP to QT_CONFIG(tooltip) 2020-04-21 20:35:29 +02:00
qtwidgetsglobal.h
qtwidgetsglobal_p.h
qwhatsthis.cpp Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qwhatsthis.h Remove handling of missing =delete and =default support 2019-05-02 11:14:29 +00:00
qwidget.cpp Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qwidget.h Remove dead code from src/widgets 2020-05-11 11:05:15 +02:00
qwidget_p.h Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
qwidgetaction.cpp Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qwidgetaction.h Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qwidgetaction_p.h Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
qwidgetrepaintmanager.cpp widgets: Clarify backingstore resize logic by removing cruft 2020-03-19 15:14:29 +01:00
qwidgetrepaintmanager_p.h widgets: Add logging for widget painting 2019-08-28 13:22:50 +02:00
qwidgetsvariant.cpp Remove unused function pointers in QVariant::Handler 2020-06-06 17:19:02 +02:00
qwidgetwindow.cpp Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
qwidgetwindow_p.h Remove dead code from src/widgets 2020-05-11 11:05:15 +02:00
qwindowcontainer.cpp Tidy nullptr usage 2019-12-06 12:13:20 +01:00
qwindowcontainer_p.h Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
win.pri Remove winrt 2020-06-06 20:25:49 +02:00