From 4865577518acc159792cd38de02ab4cc318a04a1 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 1 Jul 2024 01:20:37 +0300 Subject: [PATCH] QTemporaryFile: de-duplicate docs wrt. file actually created on open Change-Id: I64f87a8054d732d006599479bd6cca1be217700c Reviewed-by: Ivan Solovev Reviewed-by: Thiago Macieira (cherry picked from commit 88b7a043cf91d8730331eb43523f1d06cae365b6) Reviewed-by: Edward Welbourne --- src/corelib/io/qtemporaryfile.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp index 589f45cc1b9..5d00dc192e0 100644 --- a/src/corelib/io/qtemporaryfile.cpp +++ b/src/corelib/io/qtemporaryfile.cpp @@ -657,9 +657,12 @@ QTemporaryFile::QTemporaryFile() */ /*! - Constructs a QTemporaryFile with a template filename of \a - templateName. Upon opening the temporary file this will be used to create + Constructs a QTemporaryFile with \a templateName as the file name template. + +//! [file-created-on-open] + Upon opening the temporary file, \a templateName will be used to create a unique filename. +//! [file-created-on-open] //! [dynamic-part-of-filename] If \a templateName doesn't contain \c {"XXXXXX"}, it will be added @@ -694,10 +697,10 @@ QTemporaryFile::QTemporaryFile(QObject *parent) } /*! - Constructs a QTemporaryFile with a template filename of \a - templateName and the specified \a parent. - Upon opening the temporary file this will be used to - create a unique filename. + Constructs a QTemporaryFile with the specified \a parent, and + \a templateName as the file name template. + + \include qtemporaryfile.cpp file-created-on-open \include qtemporaryfile.cpp dynamic-part-of-filename