Doc: Update some links to Microsoft's documentation

The documentation links on `msdn.microsoft.com` and
`msdn2.microsoft.com` now redirect to `docs.microsoft.com`.

Some of the links in the documentation were to those domains.

In particular:

- An `\externalpage` link to the `Mitigating Cross-site Scripting With
HTTP-only Cookies` article.
- An `\externalpage` link to `Microsoft Actibe Accessibility Event
Constants`
- A link to the `RtlGetVersion` function in
`qoperatingsystemversion.cpp`
- A link to the `GetCommandLine` function in `qcoreapplication.cpp`
- A link to the `KNOWNFOLDERID` constant in `qfiledialog.cpp`

While the redirection works, our script to catch broken links on
dev-snapshots builds of the documentation doesn't handle redirection
correctly, reporting it as broken.

Both to appease the broken-links script and to avoid an unneccesary
redirection, the above links were modified to
point to the equivalent address in the new domain.

Task-number: QTBUG-96127
Pick-to: 6.2
Change-Id: I0e9a132f06af7fc43bca6c8ad2054feb6e3e27cd
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
This commit is contained in:
Luca Di Sera 2021-09-10 18:03:39 +02:00
parent 715b2cd5ad
commit 3ddc3c78ce
4 changed files with 6 additions and 5 deletions

View File

@ -353,7 +353,7 @@
*/
/*!
\externalpage http://msdn.microsoft.com/en-us/library/ms533046(VS.85).aspx
\externalpage https://docs.microsoft.com/en-us/previous-versions//ms533046(v=vs.85)
\title Mitigating Cross-site Scripting With HTTP-only Cookies
*/
@ -508,7 +508,7 @@
*/
/*!
\externalpage http://msdn.microsoft.com/en-us/library/dd318066.aspx
\externalpage https://docs.microsoft.com/en-us/windows/win32/winauto/event-constants
\title Microsoft Active Accessibility Event Constants
*/

View File

@ -93,7 +93,8 @@ QT_BEGIN_NAMESPACE
\row
\li Windows
\li dwMajorVersion, dwMinorVersion, and dwBuildNumber from
\l{https://msdn.microsoft.com/en-us/library/mt723418.aspx}{RtlGetVersion} -
\l{https://docs.microsoft.com/en-us/windows/win32/devnotes/rtlgetversion}
{RtlGetVersion} -
note that this function ALWAYS return the version number of the
underlying operating system, as opposed to the shim underneath
GetVersionEx that hides the real version number if the

View File

@ -2432,7 +2432,7 @@ qint64 QCoreApplication::applicationPid()
encoding problems might occur.
Otherwise, the arguments() are constructed from the return value of
\l{http://msdn2.microsoft.com/en-us/library/ms683156(VS.85).aspx}{GetCommandLine()}.
\l{https://docs.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinea}{GetCommandLine()}.
As a result of this, the string given by arguments().at(0) might not be
the program name on Windows, depending on how the application was started.

View File

@ -990,7 +990,7 @@ QDir QFileDialog::directory() const
by the CLSID value with the curly braces removed. For example the URL
\c clsid:374DE290-123F-4565-9164-39C4925E467B denotes the download
location. For a complete list of possible values, see the MSDN documentation on
\l{https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx}{KNOWNFOLDERID}.
\l{https://docs.microsoft.com/en-us/windows/win32/shell/knownfolderid}{KNOWNFOLDERID}.
This feature was added in Qt 5.5.
\sa QUuid