update QStandardPaths::standardLocations() documentation
authorJeremy Katz <jeremy.katz@nokia.com>
Thu, 7 Jun 2012 12:13:14 +0000 (14:13 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 10 Jun 2012 22:37:12 +0000 (00:37 +0200)
Remove the reference to PATH, as it may confuse developers who expect
a separator between locations. The ordering has been made explicit,
including the position of writableLocation() if it can be determined.
Note that some implementations may allow the empty string.

Change-Id: I134db44dd8bea437824a1d0bf8ed373ec655ab04
Reviewed-by: David Faure <faure@kde.org>
src/corelib/io/qstandardpaths.cpp

index 700b80b..6e66f8b 100644 (file)
@@ -113,8 +113,11 @@ QT_BEGIN_NAMESPACE
 
    Returns all the directories where files of \a type belong.
 
-   Much like the PATH variable, it returns the directories in order of priority,
-   starting with the user-specific writableLocation() for the \a type.
+   The list of directories is sorted from high to low priority, starting with
+   writableLocation() if it can be determined. This list is empty if no locations
+   for \a type are defined.
+
+   \sa writableLocation()
  */
 
 /*!