diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-03-23 12:10:53 +0100 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-03-23 12:50:01 +0100 |
| commit | 68733ac6c1edb90b93d12906ba2b1d41c2a4bbf2 (patch) | |
| tree | f4936b1d0938b6f0ede4df05e2fbe30e49e156bb /Source/Core/DolphinQt2/Debugger/WatchWidget.cpp | |
| parent | 773ec975f398d19b38b2cf6caf345bf9e80b902c (diff) | |
Qt: Make QSettings use the user config directory
Diffstat (limited to 'Source/Core/DolphinQt2/Debugger/WatchWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Debugger/WatchWidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt2/Debugger/WatchWidget.cpp b/Source/Core/DolphinQt2/Debugger/WatchWidget.cpp index 96b0132292..01caf96deb 100644 --- a/Source/Core/DolphinQt2/Debugger/WatchWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/WatchWidget.cpp @@ -15,7 +15,6 @@ #include <QHeaderView> #include <QMenu> #include <QMessageBox> -#include <QSettings> #include <QTableWidget> #include <QToolBar> #include <QVBoxLayout> @@ -27,7 +26,7 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent) setWindowTitle(tr("Watch")); setAllowedAreas(Qt::AllDockWidgetAreas); - QSettings settings; + auto& settings = Settings::GetQSettings(); restoreGeometry(settings.value(QStringLiteral("watchwidget/geometry")).toByteArray()); setFloating(settings.value(QStringLiteral("watchwidget/floating")).toBool()); @@ -59,7 +58,7 @@ WatchWidget::WatchWidget(QWidget* parent) : QDockWidget(parent) WatchWidget::~WatchWidget() { - QSettings settings; + auto& settings = Settings::GetQSettings(); settings.setValue(QStringLiteral("watchwidget/geometry"), saveGeometry()); settings.setValue(QStringLiteral("watchwidget/floating"), isFloating()); |
