summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-14 12:45:19 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-15 18:46:39 +0200
commit45cf8da63c419c27e7476f0a929e9d8ba664bfd3 (patch)
treefa2b36153c67f994b04728064b5db76ed86a028d /src/widgets/kernel/qapplication.cpp
parent9803ba9b6f74f5ac18220fe145fe1fe4c8f70910 (diff)
Reduce QDesktopWidget API to bare minimum
The class is documented as obsolete, and the majority of APIs is marked as deprecated. In this first phase, remove all explicitly deprecated APIs and trivial implementations. The test case is complete removed; what's left when code that uses any of those deprecated methods is removed is not testing anything meaningful. For some methods, there is no practical replacement using QScreen yet, and QDesktopWidget is still used in QWidget internals. Those require refactoring to only use QScreen before the rest can be removed. Change-Id: I8f7c968ec566820077221d37b817843758d51d49 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index d7919c9414..6e17901677 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -2517,6 +2517,8 @@ void QApplicationPrivate::sendSyntheticEnterLeave(QWidget *widget)
}
/*!
+ \internal
+
Returns the desktop widget (also called the root window).
The desktop may be composed of multiple screens, so it would be incorrect,