summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-08-11 11:52:49 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-08-27 11:40:45 -0700
commita1b22797cac64925cd8a8a06b176aa40b99c1fc1 (patch)
tree37c8d35dfcf3a546dba4ee9832b73d741783bc18
parent9299e3c42b4834f292cb85bbdcd05e581a3dfb9b (diff)
downloadsubsurface-a1b22797cac64925cd8a8a06b176aa40b99c1fc1.tar.gz
Settings update: Remove uneeded includes
and comment out questionable code. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/divelogexportlogic.cpp1
-rw-r--r--desktop-widgets/preferences/preferences_defaults.cpp1
-rw-r--r--desktop-widgets/preferences/preferences_georeference.cpp1
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp1
-rw-r--r--desktop-widgets/preferences/preferences_language.cpp1
-rw-r--r--desktop-widgets/preferences/preferences_network.cpp1
-rw-r--r--desktop-widgets/preferences/preferences_units.cpp2
-rw-r--r--desktop-widgets/preferences/preferencesdialog.cpp10
8 files changed, 5 insertions, 13 deletions
diff --git a/core/divelogexportlogic.cpp b/core/divelogexportlogic.cpp
index af5157f4a..11c1485b0 100644
--- a/core/divelogexportlogic.cpp
+++ b/core/divelogexportlogic.cpp
@@ -2,7 +2,6 @@
#include <QFile>
#include <QFileInfo>
#include <QDir>
-#include <QSettings>
#include <QTextStream>
#include "divelogexportlogic.h"
#include "helpers.h"
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();