summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication_p.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-14 23:40:34 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-10-16 04:44:13 +0200
commit215594d664f6fc7057468a05a59344f08a78a976 (patch)
treec2c31c30383e4090c6da0f31a4fcf1ca098a769c /src/widgets/kernel/qapplication_p.h
parentef1905aebc4c4961c859bd781398dc6cea89d3a0 (diff)
Purge QDesktopWidget
It's no longer used; the only calls to QApplicationPrivate::desktop pass the default nullptr for QScreen, so all we need is a Qt::Desktop type toplevel widget. Include changes documentation about both the class and QApplication::desktop being gone in Qt 6. Change-Id: I22d6e93cabc6aaaefffe5e96942886a2ef4e0609 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/kernel/qapplication_p.h')
-rw-r--r--src/widgets/kernel/qapplication_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qapplication_p.h b/src/widgets/kernel/qapplication_p.h
index c5c3f2f393..af89244d57 100644
--- a/src/widgets/kernel/qapplication_p.h
+++ b/src/widgets/kernel/qapplication_p.h
@@ -113,7 +113,7 @@ public:
void createEventDispatcher() override;
static void dispatchEnterLeave(QWidget *enter, QWidget *leave, const QPointF &globalPosF);
- static QWidget *desktop(QScreen *screen = nullptr);
+ static QWidget *desktop();
void notifyWindowIconChanged() override;
#ifndef QT_NO_ACTION