OS/2 fixes from Silvan Scherrer

This commit is contained in:
Christophe Dumez 2012-03-19 18:33:38 +02:00
parent b93cebacb2
commit 8cc538085f
3 changed files with 81 additions and 43 deletions

View file

@ -79,7 +79,7 @@ const int UNLEN = 256;
#endif
#endif // DISABLE_GUI
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
#include <QDesktopServices>
#endif
@ -160,7 +160,8 @@ QString misc::QDesktopServicesCacheLocation() {
}
QString misc::QDesktopServicesDownloadLocation() {
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
// as long as it stays WinXP like we do the same on OS/2
// TODO: Use IKnownFolderManager to get path of FOLDERID_Downloads
// instead of hardcoding "Downloads"
// Unfortunately, this would break compatibility with WinXP