From 358b9186bfd7b4b5ef41db399c3ebf399dd0c026 Mon Sep 17 00:00:00 2001 From: jme <32236882+notrege@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:11:08 +0100 Subject: [PATCH] Delete desktop-widgets/preferences/preferences_dc.cpp Remove preferences "Dive Download" window. Delete all dive computers no longer needed now that they can be deleted on the import window. Signed-off-by: jme <32236882+notrege@users.noreply.github.com> --- .../preferences/preferences_dc.cpp | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 desktop-widgets/preferences/preferences_dc.cpp diff --git a/desktop-widgets/preferences/preferences_dc.cpp b/desktop-widgets/preferences/preferences_dc.cpp deleted file mode 100644 index 4319b763a..000000000 --- a/desktop-widgets/preferences/preferences_dc.cpp +++ /dev/null @@ -1,39 +0,0 @@ -// 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 -#include -#include - -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() -{ -}