QDir::tempPath: clarify trailing-slash situation.

tst_QDir::tempPath already checks that there is no trailing slash.
Except of course when the path is "/" or "C:/", but we can't do much
about that unlikely corner case.

Change-Id: If71d5de1aeebc6720348cecbf659b7fceb83fb0e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
David Faure 2014-02-07 14:16:19 +01:00 committed by The Qt Project
parent 36af7fe678
commit 4965cf78c1

View File

@ -1944,8 +1944,8 @@ QString QDir::homePath()
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.
variable.
The path returned by this method doesn't end with a directory separator.
\sa temp(), currentPath(), homePath(), rootPath()
*/