From b8b1536329534662bddbb1d289529eb2b55f816d Mon Sep 17 00:00:00 2001 From: Jan Arne Petersen Date: Fri, 25 Jun 2010 01:46:55 +0300 Subject: Fix QDir::tempPath() documentation for Unix Mention TMPDIR environment variable for Linux/Unix case and clarify documentation. Fixes: QTBUG-11496 --- src/corelib/io/qdir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index e54d95e..ed51c5d 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -1910,7 +1910,8 @@ QString QDir::homePath() /*! Returns the absolute path of the system's temporary directory. - On Unix/Linux systems this is usually \c{/tmp}; on Windows this is + On Unix/Linux systems this is the path in the \c TMPDIR environment + variable or \c{/tmp} if \c TMPDIR is not defined. On Windows this is usually the path in the \c TEMP or \c TMP environment variable. Whether a directory separator is added to the end or not, depends on the operating system. -- cgit v0.12