diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2014-01-28 22:13:02 +0530 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2014-01-28 22:13:02 +0530 |
| commit | fa656fe56a34300e9718a3c83c9db21f56b94ac5 (patch) | |
| tree | aabf5abaa839d9015df25751bd92b86f1048918f /examples/GuiClient/utils.cpp | |
| parent | 7a81ff61c9b2d97e4dd351aa73f824a7c12a0d9f (diff) | |
| download | qxmpp-fa656fe56a34300e9718a3c83c9db21f56b94ac5.tar.gz | |
Fixes to support Qt5.
Diffstat (limited to 'examples/GuiClient/utils.cpp')
| -rw-r--r-- | examples/GuiClient/utils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/GuiClient/utils.cpp b/examples/GuiClient/utils.cpp index e50cdcb8..b4c99b28 100644 --- a/examples/GuiClient/utils.cpp +++ b/examples/GuiClient/utils.cpp @@ -24,7 +24,7 @@ #include "utils.h" #include <QDir> -#include <QDesktopServices> +#include <QStandardPaths> int comparisonWeightsPresenceStatusType(QXmppPresence::AvailableStatusType statusType) { @@ -99,7 +99,8 @@ QString presenceToStatusText(const QXmppPresence& presence) QString getSettingsDir(const QString& bareJid) { - QString dir = QDesktopServices::storageLocation(QDesktopServices::DataLocation); + QStringList dirList = QStandardPaths::standardLocations(QStandardPaths::DataLocation); + QString dir = dirList.size() > 0 ? dirList.at(0) : ""; if(bareJid.isEmpty()) return dir + "/"; else |
