Use Q_OS_* defines instead of Q_WS_*.

This commit is contained in:
Felix Geyer
2012-07-12 13:58:40 +02:00
parent 13eb1f6330
commit 9de4cbbbd6
3 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ Config::Config(QObject* parent)
QString userPath;
QString homePath = QDir::homePath();
#if defined(Q_WS_X11)
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
// we can't use QDesktopServices on X11 as it uses XDG_DATA_HOME instead of XDG_CONFIG_HOME
QByteArray env = qgetenv("XDG_CONFIG_HOME");
if (env.isEmpty()) {