QDir: add note to docs about isAbsolutePath(":foo") returning true
As can be seen in the _q_resolveEntryAndCreateLegacyEngine_recursive method in QFileSystemEngine, paths starting with ':' are treated as QResources, which means that from QFileInfo's POV they're "not relative", which is why QDir::isAbsolutePath would return true. Pick-to: 5.15 5.12 Change-Id: I701d08ce43ea707bc34c928e39bea0b83597a4b6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
217a25a6bf
commit
0da5726a43
@ -1698,7 +1698,11 @@ bool QDir::isRoot() const
|
||||
Returns \c true if \a path is absolute; returns \c false if it is
|
||||
relative.
|
||||
|
||||
\sa isAbsolute(), isRelativePath(), makeAbsolute(), cleanPath()
|
||||
\note If \a path starts with ':', this function will return \c true
|
||||
because paths starting with ':' are treated specially as they denote
|
||||
a QResource.
|
||||
|
||||
\sa isAbsolute(), isRelativePath(), makeAbsolute(), cleanPath(), QResource
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user