QFileInfo: de-duplicate docs wrt. QResource paths
Pick-to: 6.6 6.5 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>
This commit is contained in:
parent
af9bf8712e
commit
92fb1f7e76
@ -215,8 +215,10 @@ QDateTime &QFileInfoPrivate::getFileTime(QAbstractFileEngine::FileTime request)
|
|||||||
path. You can call the function makeAbsolute() to convert a
|
path. You can call the function makeAbsolute() to convert a
|
||||||
relative QFileInfo's path to an absolute path.
|
relative QFileInfo's path to an absolute path.
|
||||||
|
|
||||||
|
//! [qresource-virtual-fs-colon]
|
||||||
\note Paths starting with a colon (\e{:}) are always considered
|
\note Paths starting with a colon (\e{:}) are always considered
|
||||||
absolute, as they denote a QResource.
|
absolute, as they denote a QResource.
|
||||||
|
//! [qresource-virtual-fs-colon]
|
||||||
|
|
||||||
The file that the QFileInfo works on is set in the constructor or
|
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
|
later with setFile(). Use exists() to see if the file exists and
|
||||||
@ -644,8 +646,7 @@ QString QFileInfo::path() const
|
|||||||
Returns \c true if the file path is absolute, otherwise returns \c false (i.e.
|
Returns \c true if the file path is absolute, otherwise returns \c false (i.e.
|
||||||
the path is relative).
|
the path is relative).
|
||||||
|
|
||||||
\note Paths starting with a colon (\e{:}) are always considered absolute, as
|
\include qfileinfo.cpp qresource-virtual-fs-colon
|
||||||
they denote a QResource.
|
|
||||||
|
|
||||||
\sa isRelative()
|
\sa isRelative()
|
||||||
*/
|
*/
|
||||||
@ -655,8 +656,7 @@ QString QFileInfo::path() const
|
|||||||
false (i.e. the path is absolute). (E.g. under Unix a path is absolute
|
false (i.e. the path is absolute). (E.g. under Unix a path is absolute
|
||||||
if it begins with a "/").
|
if it begins with a "/").
|
||||||
|
|
||||||
\note Paths starting with a colon (\e{:}) are always considered absolute,
|
\include qfileinfo.cpp qresource-virtual-fs-colon
|
||||||
as they denote a QResource.
|
|
||||||
|
|
||||||
\sa isAbsolute()
|
\sa isAbsolute()
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user