diff options
author | David Faure <faure@kde.org> | 2011-11-03 19:13:32 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-04 10:54:54 +0100 |
commit | 272d20ce27bfde44fe0ea85d90fe178bb01198da (patch) | |
tree | cbf115bf061c1af44f29286a569ad07ab0988842 /src/corelib/io/qstandardpaths_win.cpp | |
parent | ae6e7e3d59439008e7369da8083f4e5c4f6f980a (diff) |
QStandardPaths: add DownloadLocation.
Only properly implemented on unix (XDG), falls back to Document location
on Mac and Windows, because not easily available with the current API
being used by either one.
Change-Id: Id269f0e3c4e3a68e19205de96c0b39980fde80ff
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_win.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_win.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qstandardpaths_win.cpp b/src/corelib/io/qstandardpaths_win.cpp index 5716ffc6a8..e9093649f3 100644 --- a/src/corelib/io/qstandardpaths_win.cpp +++ b/src/corelib/io/qstandardpaths_win.cpp @@ -123,6 +123,7 @@ QString QStandardPaths::writableLocation(StandardLocation type) result = convertCharArray(path); break; + case DownloadLocation: // TODO implement with SHGetKnownFolderPath(FOLDERID_Downloads) (starting from Vista) case DocumentsLocation: if (SHGetSpecialFolderPath(0, path, CSIDL_PERSONAL, FALSE)) result = convertCharArray(path); |