summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qdesktopservices_win.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-07 16:16:15 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2009-10-07 16:17:20 (GMT)
commitdf5cdc6d9a22ae11d607e9359a3bb9a80596fdb6 (patch)
tree16a8dca6c406d7fce9064c09c0b112f3b35ebf7a /src/gui/util/qdesktopservices_win.cpp
parent14a8f1fb7414885cc3868b1d27699b5a0d59e7ee (diff)
downloadQt-df5cdc6d9a22ae11d607e9359a3bb9a80596fdb6.zip
Qt-df5cdc6d9a22ae11d607e9359a3bb9a80596fdb6.tar.gz
Qt-df5cdc6d9a22ae11d607e9359a3bb9a80596fdb6.tar.bz2
QDesktopServices compile fix for Windows CE
There's no CSIDL_LOCAL_APPDATA on Windows CE. Use CSIDL_APPDATA instead. Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/util/qdesktopservices_win.cpp')
-rw-r--r--src/gui/util/qdesktopservices_win.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/util/qdesktopservices_win.cpp b/src/gui/util/qdesktopservices_win.cpp
index bf29870..4ecef97 100644
--- a/src/gui/util/qdesktopservices_win.cpp
+++ b/src/gui/util/qdesktopservices_win.cpp
@@ -186,7 +186,11 @@ QString QDesktopServices::storageLocation(StandardLocation type)
switch (type) {
case DataLocation:
+#if defined Q_WS_WINCE
+ if (SHGetSpecialFolderPath(0, path, CSIDL_APPDATA, FALSE))
+#else
if (SHGetSpecialFolderPath(0, path, CSIDL_LOCAL_APPDATA, FALSE))
+#endif
result = QString::fromWCharArray(path);
if (!QCoreApplication::organizationName().isEmpty())
result = result + QLatin1String("\\") + QCoreApplication::organizationName();