summaryrefslogtreecommitdiff
path: root/quacker/settings.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2017-08-02 00:21:40 -0500
committerGitHub <noreply@github.com>2017-08-02 00:21:40 -0500
commit6684280feec74fa4c58066cf8e667b5f19a717c7 (patch)
tree6fa1e702d41eaac6e985f4e6adc1e0574f0574e5 /quacker/settings.cpp
parent9593f48793d6a11617de47a96c282f9ddb153cd5 (diff)
parenta91130890c24612fd4c1fba0fabce5723ffe78d4 (diff)
Merge pull request #37 from gokceneraslan/qt55
Port quackle to Qt 5.5
Diffstat (limited to 'quacker/settings.cpp')
-rw-r--r--quacker/settings.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/quacker/settings.cpp b/quacker/settings.cpp
index 6e80afe..5811edb 100644
--- a/quacker/settings.cpp
+++ b/quacker/settings.cpp
@@ -22,7 +22,12 @@
#include <sstream>
#include <QtGui>
+#include <QGridLayout>
+#include <QComboBox>
#include <QMessageBox>
+#include <QLabel>
+#include <QPushButton>
+#include <QStandardPaths>
#ifdef Q_WS_MAC
#include <CoreFoundation/CoreFoundation.h>
@@ -92,7 +97,7 @@ Settings::Settings(QWidget *parent)
QMessageBox::critical(0, tr("Error Initializing Data Files - Quacker"), tr("<p>Could not open data directory. Quackle will be useless. Try running the quacker executable with quackle/quacker/ as the current directory.</p>"));
m_appDataDir = directory.absolutePath();
}
- m_userDataDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
+ m_userDataDir = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
QDir qdir(m_userDataDir);
qdir.mkpath("lexica");
}