summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdir.cpp
diff options
context:
space:
mode:
authorJan Arne Petersen <jpetersen@jpetersen.org>2010-06-24 22:46:55 (GMT)
committerJan Arne Petersen <jpetersen@jpetersen.org>2010-06-24 22:46:55 (GMT)
commitb8b1536329534662bddbb1d289529eb2b55f816d (patch)
tree9c0af16af0971c7c957f2683aa3cc7ffcdcf2cc4 /src/corelib/io/qdir.cpp
parent211d51adae4d3914544c6b3f82caf66a99af03ec (diff)
downloadQt-b8b1536329534662bddbb1d289529eb2b55f816d.zip
Qt-b8b1536329534662bddbb1d289529eb2b55f816d.tar.gz
Qt-b8b1536329534662bddbb1d289529eb2b55f816d.tar.bz2
Fix QDir::tempPath() documentation for Unix
Mention TMPDIR environment variable for Linux/Unix case and clarify documentation. Fixes: QTBUG-11496
Diffstat (limited to 'src/corelib/io/qdir.cpp')
-rw-r--r--src/corelib/io/qdir.cpp3
1 files changed, 2 insertions, 1 deletions
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.