diff options
author | Helmut K. C. Tessarek <tessarek@evermeet.cx> | 2017-09-13 07:26:56 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2017-09-15 08:11:05 +0300 |
commit | 709aa27031f07ffbc21e0478ae0da220885a4cf3 (patch) | |
tree | 9c50f0ad23de8f9a1b02131dcc5cd02e20f179ae /src/gui/socketapi.cpp | |
parent | 5b01d634915dbdab1d79e17f6af043a9031bd283 (diff) |
remove qt4 code
Diffstat (limited to 'src/gui/socketapi.cpp')
-rw-r--r-- | src/gui/socketapi.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 11a971128..fe7ca5f4d 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -50,10 +50,7 @@ #include <sqlite3.h> - -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include <QStandardPaths> -#endif // This is the version that is returned when the client asks for the VERSION. @@ -188,16 +185,7 @@ SocketApi::SocketApi(QObject *parent) socketPath = SOCKETAPI_TEAM_IDENTIFIER_PREFIX APPLICATION_REV_DOMAIN ".socketApi"; } else if (Utility::isLinux() || Utility::isBSD()) { QString runtimeDir; -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) runtimeDir = QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation); -#else - runtimeDir = QFile::decodeName(qgetenv("XDG_RUNTIME_DIR")); - if (runtimeDir.isEmpty()) { - runtimeDir = QDir::tempPath() + QLatin1String("/runtime-") - + QString::fromLocal8Bit(qgetenv("USER")); - QDir().mkdir(runtimeDir); - } -#endif socketPath = runtimeDir + "/" + Theme::instance()->appName() + "/socket"; } else { qCWarning(lcSocketApi) << "An unexpected system detected, this probably won't work."; |