QFileInfo: de-duplicate docs wrt. QResource paths

Change-Id: I8a99a3aacc68bf43da21e1101c838154d06aef6e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 9fc8bd00967ae89c2174d10c2f38d654edc99a1d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 92fb1f7e76ebe9c65615d72ea03110057421cf95)
(cherry picked from commit 33ac6ea2d82bb9ad31fad7d048d1adeb36982058)
This commit is contained in:
Ahmad Samir 2024-01-23 21:36:52 +02:00 committed by Qt Cherry-pick Bot
parent 605d1b3e28
commit 72d5931130

View File

@ -212,8 +212,10 @@ QDateTime &QFileInfoPrivate::getFileTime(QAbstractFileEngine::FileTime request)
path. You can call the function makeAbsolute() to convert a
relative QFileInfo's path to an absolute path.
//! [qresource-virtual-fs-colon]
\note Paths starting with a colon (\e{:}) are always considered
absolute, as they denote a QResource.
//! [qresource-virtual-fs-colon]
The file that the QFileInfo works on is set in the constructor or
later with setFile(). Use exists() to see if the file exists and
@ -619,8 +621,7 @@ QString QFileInfo::path() const
Returns \c true if the file path is absolute, otherwise returns \c false (i.e.
the path is relative).
\note Paths starting with a colon (\e{:}) are always considered absolute, as
they denote a QResource.
\include qfileinfo.cpp qresource-virtual-fs-colon
\sa isRelative()
*/
@ -630,8 +631,7 @@ QString QFileInfo::path() const
false (i.e. the path is absolute). (E.g. under Unix a path is absolute
if it begins with a "/").
\note Paths starting with a colon (\e{:}) are always considered absolute,
as they denote a QResource.
\include qfileinfo.cpp qresource-virtual-fs-colon
\sa isAbsolute()
*/