Add missing documentation to QTemporaryDir constructors

Change-Id: Ic7dea331695fa4653e4b963fef8383f44c3b1fb8
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
bb10
David Faure 2012-01-23 15:29:49 +01:00 committed by Qt by Nokia
parent b5f2dd65ac
commit 2c3221dd07
1 changed files with 20 additions and 0 deletions

View File

@ -163,12 +163,32 @@ void QTemporaryDirPrivate::create(const QString &templateName)
\sa QDir::tempPath(), QDir, QTemporaryFile
*/
/*!
Constructs a QTemporaryDir using as template the application name
returned by QCoreApplication::applicationName() (otherwise \c qt_temp).
The directory is stored in the system's temporary directory, QDir::tempPath().
\sa QDir::tempPath()
*/
QTemporaryDir::QTemporaryDir()
: d_ptr(new QTemporaryDirPrivate)
{
d_ptr->create(defaultTemplateName());
}
/*!
Constructs a QTemporaryFile with a template name of \a templateName.
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
templateName if you want use the system's temporary directory.
If the \a templateName ends with XXXXXX it will be used as the dynamic portion
of the directory name, otherwise it will be appended.
Unlike QTemporaryFile, XXXXXX in the middle of the template string is not supported.
\sa QDir::tempPath()
*/
QTemporaryDir::QTemporaryDir(const QString &templateName)
: d_ptr(new QTemporaryDirPrivate)
{