diff options
author | David Faure <faure@kde.org> | 2011-10-21 20:57:54 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-23 00:56:56 +0200 |
commit | ddc093b90e26b2f5291ee70f9d752607429cd81a (patch) | |
tree | 0a69f3ef97cd45419b6c0d661996255259e59a30 /src/corelib/io/qstandardpaths_win.cpp | |
parent | 4b72c3f4347bfb8493e877d26f172f2e18c69a83 (diff) |
Add QStandardPaths::RuntimeLocation, for sockets ($XDG_RUNTIME_DIR)
Change-Id: I19c36a04a9deae49ffc20fdec6a2a7eb05155cb4
Reviewed-by: Thiago Macieira (Intel) <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_win.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_win.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/corelib/io/qstandardpaths_win.cpp b/src/corelib/io/qstandardpaths_win.cpp index 497e09e0e2..bd327e6f37 100644 --- a/src/corelib/io/qstandardpaths_win.cpp +++ b/src/corelib/io/qstandardpaths_win.cpp @@ -159,16 +159,14 @@ QString QStandardPaths::storageLocation(StandardLocation type) // cache directory located in their AppData directory return storageLocation(DataLocation) + QLatin1String("\\cache"); - case QStandardPaths::HomeLocation: + case RuntimeLocation: + case HomeLocation: result = QDir::homePath(); break; - case QStandardPaths::TempLocation: + case TempLocation: result = QDir::tempPath(); break; - - default: - break; } return result; } |