QTemporaryFile: de-duplicate API docs wrt. note about rename() method
Pick-to: 6.7 Change-Id: I57bcf0b40785fd15aba0790673e7723b132f587c Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit bf8fb9c3d94bfa9dcb3d0b181663bab245650ab3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b0e9c0d740
commit
9bccfb80bb
@ -598,9 +598,12 @@ QString QTemporaryFilePrivate::defaultTemplateName()
|
|||||||
be placed into the temporary path as returned by QDir::tempPath().
|
be placed into the temporary path as returned by QDir::tempPath().
|
||||||
If you specify your own filename, a relative file path will not be placed in the
|
If you specify your own filename, a relative file path will not be placed in the
|
||||||
temporary directory by default, but be relative to the current working directory.
|
temporary directory by default, but be relative to the current working directory.
|
||||||
|
|
||||||
|
//! [note-about-rename-method]
|
||||||
It is important to specify the correct directory if the rename() function will be
|
It is important to specify the correct directory if the rename() function will be
|
||||||
called, as QTemporaryFile can only rename files within the same volume / filesystem
|
called, as QTemporaryFile can only rename files within the same volume / filesystem
|
||||||
as the temporary file itself was created on.
|
as the temporary file itself was created on.
|
||||||
|
//! [note-about-rename-method]
|
||||||
|
|
||||||
Specified filenames can contain the following template \c XXXXXX
|
Specified filenames can contain the following template \c XXXXXX
|
||||||
(six upper case "X" characters), which will be replaced by the
|
(six upper case "X" characters), which will be replaced by the
|
||||||
@ -658,11 +661,8 @@ QTemporaryFile::QTemporaryFile()
|
|||||||
|
|
||||||
If \a templateName is a relative path, the path will be relative to the
|
If \a templateName is a relative path, the path will be relative to the
|
||||||
current working directory. You can use QDir::tempPath() to construct \a
|
current working directory. You can use QDir::tempPath() to construct \a
|
||||||
templateName if you want use the system's temporary directory. It is
|
templateName if you want use the system's temporary directory.
|
||||||
important to specify the correct directory if the rename() function will be
|
\include qtemporaryfile.cpp note-about-rename-method
|
||||||
called, as QTemporaryFile can only rename files within the same volume /
|
|
||||||
filesystem as the temporary file itself was created on.
|
|
||||||
|
|
||||||
|
|
||||||
\sa open(), fileTemplate()
|
\sa open(), fileTemplate()
|
||||||
*/
|
*/
|
||||||
@ -695,10 +695,8 @@ QTemporaryFile::QTemporaryFile(QObject *parent)
|
|||||||
|
|
||||||
If \a templateName is a relative path, the path will be relative to the
|
If \a templateName is a relative path, the path will be relative to the
|
||||||
current working directory. You can use QDir::tempPath() to construct \a
|
current working directory. You can use QDir::tempPath() to construct \a
|
||||||
templateName if you want use the system's temporary directory. It is
|
templateName if you want use the system's temporary directory.
|
||||||
important to specify the correct directory if the rename() function will be
|
\include qtemporaryfile.cpp note-about-rename-method
|
||||||
called, as QTemporaryFile can only rename files within the same volume /
|
|
||||||
filesystem as the temporary file itself was created on.
|
|
||||||
|
|
||||||
\sa open(), fileTemplate()
|
\sa open(), fileTemplate()
|
||||||
*/
|
*/
|
||||||
@ -823,10 +821,8 @@ QString QTemporaryFile::fileTemplate() const
|
|||||||
|
|
||||||
If \a name contains a relative file path, the path will be relative to the
|
If \a name contains a relative file path, the path will be relative to the
|
||||||
current working directory. You can use QDir::tempPath() to construct \a
|
current working directory. You can use QDir::tempPath() to construct \a
|
||||||
name if you want use the system's temporary directory. It is important to
|
name if you want use the system's temporary directory.
|
||||||
specify the correct directory if the rename() function will be called, as
|
\include qtemporaryfile.cpp note-about-rename-method
|
||||||
QTemporaryFile can only rename files within the same volume / filesystem as
|
|
||||||
the temporary file itself was created on.
|
|
||||||
|
|
||||||
\sa fileTemplate()
|
\sa fileTemplate()
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user