summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorAxel Spoerl <[email protected]>2025-09-23 16:06:50 +0200
committerAxel Spoerl <[email protected]>2025-09-29 22:56:14 +0200
commit36bd6009072df327af45bea464142003b88ba495 (patch)
tree568f04d2dc1f7e552bf872a07333353977f741ad /src/widgets/kernel/qapplication.cpp
parentc556ead168256d7831ab3a4a328d915838a0909b (diff)
Remove QApplicationPrivate::desktop()
A desktop widget is no longer needed. Remove the function and the associated static variable, and its deletion in the QWidget d'tor. Fixes: QTBUG-124559 Change-Id: I717a93b0f19cb60fd25bef5f5cbb905cd7585194 Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index bd0108dd0d3..bcf10ad8ed2 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -357,8 +357,6 @@ Q_GLOBAL_STATIC(FontHash, app_fonts)
// Exported accessor for use outside of this file
FontHash *qt_app_fonts_hash() { return app_fonts(); }
-QWidget *qt_desktopWidget = nullptr; // root window widgets
-
/*!
\internal
*/
@@ -685,9 +683,6 @@ QApplication::~QApplication()
delete mySet;
}
- delete qt_desktopWidget;
- qt_desktopWidget = nullptr;
-
QApplicationPrivate::widgetPalettes.clear();
delete QApplicationPrivate::sys_font;
@@ -2438,24 +2433,6 @@ void QApplicationPrivate::sendSyntheticEnterLeave(QWidget *widget)
#endif // QT_NO_CURSOR
}
-/*!
- \internal
-
- Returns the desktop widget (also called the root window).
-
- The widget represents the entire virtual desktop, and its geometry will
- be the union of all screens.
-*/
-QWidget *QApplicationPrivate::desktop()
-{
- CHECK_QAPP_INSTANCE(nullptr)
- if (!qt_desktopWidget || // not created yet
- !(qt_desktopWidget->windowType() == Qt::Desktop)) { // reparented away
- qt_desktopWidget = new QWidget(nullptr, Qt::Desktop);
- }
- return qt_desktopWidget;
-}
-
/*
Sets the time after which a drag should start to \a ms ms.