diff options
author | Nicolas Fella <nicolas.fella@kdab.com> | 2022-05-17 22:46:39 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-05-18 15:54:15 +0000 |
commit | de09aefcd69c77a0cfae4e28f974017318b767a9 (patch) | |
tree | 20946375f6956bc00203ee023964a10b9c9d5e49 /src/gui | |
parent | 20d5f8461f36596723fa324a12a4d7ad4ea679c6 (diff) |
[qtx11extras] Replace references to QDesktopWidget with QScreen
QDesktopWidget doesn't exist any more
Pick-to: 6.3 6.2
Change-Id: Ie4e2f9ce14ebe89b52224a0be798cd3cc9ff6134
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/platform/unix/qtx11extras.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/platform/unix/qtx11extras.cpp b/src/gui/platform/unix/qtx11extras.cpp index 00bf1b1a5a..b21561fca4 100644 --- a/src/gui/platform/unix/qtx11extras.cpp +++ b/src/gui/platform/unix/qtx11extras.cpp @@ -44,7 +44,7 @@ static QScreen *findScreenForVirtualDesktop(int virtualDesktopNumber) application. \warning This class is only available on X11. For querying - per-screen information in a portable way, use QDesktopWidget. + per-screen information in a portable way, use QScreen. */ /*! @@ -70,7 +70,7 @@ bool QX11Info::isPlatformX11() The \a screen argument is an X screen number. Be aware that if the user's system uses Xinerama (as opposed to traditional X11 - multiscreen), there is only one X screen. Use QDesktopWidget to + multiscreen), there is only one X screen. Use QScreen to query for information about Xinerama screens. \sa appDpiY() @@ -97,7 +97,7 @@ int QX11Info::appDpiX(int screen) The \a screen argument is an X screen number. Be aware that if the user's system uses Xinerama (as opposed to traditional X11 - multiscreen), there is only one X screen. Use QDesktopWidget to + multiscreen), there is only one X screen. Use QScreen to query for information about Xinerama screens. \sa appDpiX() @@ -123,7 +123,7 @@ int QX11Info::appDpiY(int screen) The \a screen argument is an X screen number. Be aware that if the user's system uses Xinerama (as opposed to traditional X11 - multiscreen), there is only one X screen. Use QDesktopWidget to + multiscreen), there is only one X screen. Use QScreen to query for information about Xinerama screens. */ quint32 QX11Info::appRootWindow(int screen) @@ -152,7 +152,7 @@ quint32 QX11Info::appRootWindow(int screen) are combined in one X11 screen. This means this method returns the same number for each of the physical monitors. In such a setup you are interested in the monitor information as provided by the X11 - RandR extension. This is available through QDesktopWidget and QScreen. + RandR extension. This is available through QScreen. \sa display() */ |