[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>
This commit is contained in:
Nicolas Fella 2022-05-17 22:46:39 +02:00 committed by Volker Hilsheimer
parent 20d5f8461f
commit de09aefcd6

View File

@ -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()
*/