mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
9299e3c42b
commit
a1b22797ca
8 changed files with 5 additions and 13 deletions
|
@ -2,7 +2,6 @@
|
|||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
#include <QSettings>
|
||||
#include <QTextStream>
|
||||
#include "divelogexportlogic.h"
|
||||
#include "helpers.h"
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "qt-models/divelocationmodel.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <QSettings>
|
||||
|
||||
PreferencesGeoreference::PreferencesGeoreference() : AbstractPreferencesWidget(tr("Georeference"), QIcon(":/georeference"), 9)
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include "core/subsurface-qt/SettingsObjectWrapper.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QSettings>
|
||||
#include <QMessageBox>
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
|
|
|
@ -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())
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue