diff options
author | John Fultz <jfultz@wolfram.com> | 2017-08-02 00:21:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 00:21:40 -0500 |
commit | 6684280feec74fa4c58066cf8e667b5f19a717c7 (patch) | |
tree | 6fa1e702d41eaac6e985f4e6adc1e0574f0574e5 /quacker/settings.cpp | |
parent | 9593f48793d6a11617de47a96c282f9ddb153cd5 (diff) | |
parent | a91130890c24612fd4c1fba0fabce5723ffe78d4 (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.cpp | 7 |
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"); } |