summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferences_defaults.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/preferences/preferences_defaults.cpp')
-rw-r--r--desktop-widgets/preferences/preferences_defaults.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp
index 9cdaeb43f..4d8c2a7e1 100644
--- a/desktop-widgets/preferences/preferences_defaults.cpp
+++ b/desktop-widgets/preferences/preferences_defaults.cpp
@@ -5,6 +5,7 @@
#include "core/settings/qPrefGeneral.h"
#include "core/settings/qPrefDisplay.h"
#include "core/settings/qPrefCloudStorage.h"
+#include "core/settings/qPrefDiveComputer.h"
#include <QFileDialog>
@@ -60,6 +61,19 @@ void PreferencesDefaults::on_extractVideoThumbnails_toggled(bool toggled)
ui->ffmpegFile->setEnabled(toggled);
}
+void PreferencesDefaults::on_resetRememberedDCs_clicked()
+{
+ qPrefDiveComputer::set_vendor1(QString());
+ qPrefDiveComputer::set_vendor2(QString());
+ qPrefDiveComputer::set_vendor3(QString());
+ qPrefDiveComputer::set_vendor4(QString());
+}
+
+void PreferencesDefaults::on_resetSettings_clicked()
+{
+ // apparently this button was never hooked up?
+}
+
void PreferencesDefaults::refreshSettings()
{
ui->font->setCurrentFont(qPrefDisplay::divelist_font());