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>
This commit is contained in:
Tomaz Canabrava 2016-08-11 11:52:49 -03:00 committed by Dirk Hohndel
parent 9299e3c42b
commit a1b22797ca
8 changed files with 5 additions and 13 deletions

View file

@ -2,7 +2,6 @@
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QSettings>
#include <QTextStream>
#include "divelogexportlogic.h"
#include "helpers.h"

View file

@ -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())

View file

@ -6,7 +6,6 @@
#include "qt-models/divelocationmodel.h"
#include <ctime>
#include <QSettings>
PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":/georeference"), 9)
{

View file

@ -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"

View file

@ -4,7 +4,6 @@
#include "core/subsurface-qt/SettingsObjectWrapper.h"
#include <QApplication>
#include <QSettings>
#include <QMessageBox>
#include <QSortFilterProxyModel>

View file

@ -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())
{

View file

@ -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);

View file

@ -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();