aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qnx/qnxutils.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2014-08-28 17:33:47 +0200
committerChristian Kandeler <[email protected]>2014-08-29 14:10:41 +0200
commit1d5091e48f6df341dbd4436843c25afe25cbf4ce (patch)
tree9151d71b36bcffbba219ef1a0fc4e4f234adbc89 /src/plugins/qnx/qnxutils.cpp
parent7ba0f8a4c42c5db144b599861f38d2e771e0dafe (diff)
Do not use deprecated Qt functionality.
Replace all* remaining deprecated Qt 4 functions with their Qt 5 counterparts. This means we no longer need to define the QT_DISABLE_DEPRECATED_BEFORE macro. This patch is relatively small because most source-compatible changes of this kind have been done before. * The one exception is the QmlDesigner, which uses QWeakPointer in a deprecated way all over the place. Change-Id: Id4b839c6685f3b5bdf2b89137f95231758ec53c7 Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/qnx/qnxutils.cpp')
-rw-r--r--src/plugins/qnx/qnxutils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/qnx/qnxutils.cpp b/src/plugins/qnx/qnxutils.cpp
index 3791ecfa78a..6ca62db3e95 100644
--- a/src/plugins/qnx/qnxutils.cpp
+++ b/src/plugins/qnx/qnxutils.cpp
@@ -36,9 +36,9 @@
#include <utils/synchronousprocess.h>
#include <QDir>
-#include <QDesktopServices>
#include <QDomDocument>
#include <QProcess>
+#include <QStandardPaths>
#include <QTemporaryFile>
#include <QApplication>
@@ -191,9 +191,11 @@ QString QnxUtils::bbDataDirPath()
if (Utils::HostOsInfo::isWindowsHost()) {
// Get the proper storage location on Windows using QDesktopServices,
// to not hardcode "AppData/Local", as it might refer to "AppData/Roaming".
- QString dataDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
+ QString dataDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)
+ + QLatin1String("/data");
dataDir = dataDir.left(dataDir.indexOf(QCoreApplication::organizationName()));
dataDir.append(QLatin1String("Research in Motion"));
+ qDebug("qnx: Full data dir is '%s'", qPrintable(dataDir));
return dataDir;
}