aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferences_dc.cpp
blob: b88881bd8d2cc7a0475dd878db1b61e6ae771211 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: GPL-2.0
#include "preferences_dc.h"
#include "ui_preferences_dc.h"
#include "core/dive.h"
#include "core/settings/qPrefDisplay.h"
#include "core/settings/qPrefCloudStorage.h"
#include "core/settings/qPrefDiveComputer.h"

#include <QFileDialog>
#include <QProcess>
#include <QMessageBox>

PreferencesDc::PreferencesDc(): AbstractPreferencesWidget(tr("Dive download"), QIcon(":preferences-dc-icon"), 0 ), ui(new Ui::PreferencesDc())
{
	ui->setupUi(this);
	const QSize BUTTON_SIZE = QSize(200, 22);
	ui->resetRememberedDCs->resize(BUTTON_SIZE);
}

PreferencesDc::~PreferencesDc()
{
	delete ui;
}

void PreferencesDc::on_resetRememberedDCs_clicked()
{
	qPrefDiveComputer::set_vendor1(QString());
	qPrefDiveComputer::set_vendor2(QString());
	qPrefDiveComputer::set_vendor3(QString());
	qPrefDiveComputer::set_vendor4(QString());
}


void PreferencesDc::refreshSettings()
{
}

void PreferencesDc::syncSettings()
{
}