QTemporaryDir: clarify path/filePath() API docs
QTemporaryDir(const QString &templatePath) API docs say the path is relative or absolute depending on whether `templatePath` is relative or absolute. Pick-to: 6.7 Change-Id: If77f9b378158235a68344689ded6756ac3f083cc Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 9dc189e632bd5b6921361af786cf54434d2adf45) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7580f42606
commit
41009cade5
@ -239,6 +239,14 @@ QString QTemporaryDir::errorString() const
|
||||
/*!
|
||||
Returns the path to the temporary directory.
|
||||
Empty if the QTemporaryDir could not be created.
|
||||
|
||||
//! [relative-or-absolute-path]
|
||||
The returned path will be relative or absolulte depending on whether
|
||||
QTemporaryDir was constructed with a relative or absolute path,
|
||||
respectively.
|
||||
//! [relative-or-absolute-path]
|
||||
|
||||
|
||||
*/
|
||||
QString QTemporaryDir::path() const
|
||||
{
|
||||
@ -253,6 +261,8 @@ QString QTemporaryDir::path() const
|
||||
Redundant multiple separators or "." and ".." directories in
|
||||
\a fileName are not removed (see QDir::cleanPath()). Absolute
|
||||
paths are not allowed.
|
||||
|
||||
\include qtemporarydir.cpp relative-or-absolute-path
|
||||
*/
|
||||
QString QTemporaryDir::filePath(const QString &fileName) const
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user