diff options
author | Nico Vertriest <nico.vertriest@digia.com> | 2014-08-14 16:08:27 +0200 |
---|---|---|
committer | Nico Vertriest <nico.vertriest@digia.com> | 2014-08-27 10:26:38 +0200 |
commit | 8e96e73ebce9e0e7bd9c9f55eb545c442fe93a70 (patch) | |
tree | 6efc1f9859ed4485c346f738589a045e90de1cb8 /src/corelib/io/qtemporaryfile.cpp | |
parent | f1bce3bc17ebb99b1512b07499988538465c78a2 (diff) |
Doc: corrected autolink errors corelib io
Task-number: QTBUG-40362
Change-Id: If11700d57db75ad7605bd8d53681002639c2e785
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/corelib/io/qtemporaryfile.cpp')
-rw-r--r-- | src/corelib/io/qtemporaryfile.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index 3cade0ed25..d88ffb7c84 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -700,18 +700,20 @@ void QTemporaryFile::setFileTemplate(const QString &name) /*! - If \a file is not already a native file then a QTemporaryFile is created - in the tempPath() and \a file is copied into the temporary file, then a - pointer to the temporary file is returned. If \a file is already a native - file, a QTemporaryFile is not created, no copy is made and 0 is returned. + If \a file is not already a native file, then a QTemporaryFile is created + in QDir::tempPath(), the contents of \a file is copied into it, and a pointer + to the temporary file is returned. Does nothing and returns \c 0 if \a file + is already a native file. For example: + \code QFile f(":/resources/file.txt"); QTemporaryFile::createNativeFile(f); // Returns a pointer to a temporary file QFile f("/users/qt/file.txt"); QTemporaryFile::createNativeFile(f); // Returns 0 + \endcode \sa QFileInfo::isNativePath() */ |