diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-13 20:34:53 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-14 10:59:39 +0200 |
commit | ec1d4a2bcaca0b4e13dc33384b3c8d92ed087acc (patch) | |
tree | 7a2a2de03a829493d9cdf9aa6fdb0dde127d9bf3 /src | |
parent | bc294899e588a743d96a0110f7575902c482a806 (diff) |
Document QApplication::desktop as obsolete
There is no function equivalent in Qt 5.15, but the entire QDesktopWidget
class is already documented as obsolete, so this method should implicitly
no longer be used in new code.
Qt 6 lifts QScreen up to support the various QDesktopWidget use cases,
and a follow up will remove this method from Qt 6.0, or at least mark it
as deprecated API as well so that it generates warnings when used.
Change-Id: I9b205e6d4a636c22a95728695088233c898cbfc4
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 456ba431e649ac87f5043d18ca2efc35d3dba5e4)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/kernel/qapplication.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index 0375531960..03e68217dd 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -2699,6 +2699,8 @@ void QApplicationPrivate::sendSyntheticEnterLeave(QWidget *widget) } /*! + \obsolete + Returns the desktop widget (also called the root window). The desktop may be composed of multiple screens, so it would be incorrect, |