diff options
Diffstat (limited to 'desktop-widgets/preferences')
7 files changed, 5 insertions, 12 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp index 12771e04a..2ebbe5467 100644 --- a/desktop-widgets/preferences/preferences_defaults.cpp +++ b/desktop-widgets/preferences/preferences_defaults.cpp @@ -4,7 +4,6 @@ #include "core/prefs-macros.h" #include "core/subsurface-qt/SettingsObjectWrapper.h" -#include <QSettings> #include <QFileDialog> PreferencesDefaults::PreferencesDefaults(): AbstractPreferencesWidget(tr("Defaults"), QIcon(":defaults"), 0 ), ui(new Ui::PreferencesDefaults()) diff --git a/desktop-widgets/preferences/preferences_georeference.cpp b/desktop-widgets/preferences/preferences_georeference.cpp index f626b3141..dfa841c88 100644 --- a/desktop-widgets/preferences/preferences_georeference.cpp +++ b/desktop-widgets/preferences/preferences_georeference.cpp @@ -6,7 +6,6 @@ #include "qt-models/divelocationmodel.h" #include <ctime> -#include <QSettings> PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":/georeference"), 9) { diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index d94eae9a7..36951ef22 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -2,7 +2,6 @@ #include "ui_preferences_graph.h" #include "core/prefs-macros.h" #include "core/subsurface-qt/SettingsObjectWrapper.h" -#include <QSettings> #include <QMessageBox> #include "qt-models/models.h" diff --git a/desktop-widgets/preferences/preferences_language.cpp b/desktop-widgets/preferences/preferences_language.cpp index 408b48b66..75297a8ff 100644 --- a/desktop-widgets/preferences/preferences_language.cpp +++ b/desktop-widgets/preferences/preferences_language.cpp @@ -4,7 +4,6 @@ #include "core/subsurface-qt/SettingsObjectWrapper.h" #include <QApplication> -#include <QSettings> #include <QMessageBox> #include <QSortFilterProxyModel> diff --git a/desktop-widgets/preferences/preferences_network.cpp b/desktop-widgets/preferences/preferences_network.cpp index 2e0ebbd32..68c8a9427 100644 --- a/desktop-widgets/preferences/preferences_network.cpp +++ b/desktop-widgets/preferences/preferences_network.cpp @@ -6,7 +6,6 @@ #include "core/cloudstorage.h" #include "core/subsurface-qt/SettingsObjectWrapper.h" #include <QNetworkProxy> -#include <QSettings> PreferencesNetwork::PreferencesNetwork() : AbstractPreferencesWidget(tr("Network"),QIcon(":network"), 9), ui(new Ui::PreferencesNetwork()) { diff --git a/desktop-widgets/preferences/preferences_units.cpp b/desktop-widgets/preferences/preferences_units.cpp index c62fb1cdc..aa324ec59 100644 --- a/desktop-widgets/preferences/preferences_units.cpp +++ b/desktop-widgets/preferences/preferences_units.cpp @@ -4,8 +4,6 @@ #include "core/qthelper.h" #include "core/subsurface-qt/SettingsObjectWrapper.h" -#include <QSettings> - PreferencesUnits::PreferencesUnits(): AbstractPreferencesWidget(tr("Units"),QIcon(":units"),1), ui(new Ui::PreferencesUnits()) { ui->setupUi(this); diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index 01d0aace4..3b92dff5e 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -16,7 +16,6 @@ #include <QStackedWidget> #include <QDialogButtonBox> #include <QAbstractButton> -#include <QSettings> #include <QDebug> PreferencesDialog* PreferencesDialog::instance() @@ -34,10 +33,11 @@ PreferencesDialog::PreferencesDialog() { loadPreferences(); //TODO: Move this code out of the qthelper.cpp - QSettings s; - s.beginGroup("GeneralSettings"); - s.setValue("default_directory", system_default_directory()); - s.endGroup(); + //FIXME: This looks wrong. + //QSettings s; + //s.beginGroup("GeneralSettings"); + //s.setValue("default_directory", system_default_directory()); + //s.endGroup(); pagesList = new QListWidget(); pagesStack = new QStackedWidget(); |