mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:13:24 +00:00
857148efd6
This give compile time checking. In fact, one of the connections was not working (currentIndexChanged(QString) doesn't exist in newer(?) Qt versions). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
39 lines
937 B
C++
39 lines
937 B
C++
// 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"), 3 ), 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()
|
|
{
|
|
}
|