aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 70415f077..59ebf2f25 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -364,12 +364,6 @@ void MainWindow::on_actionAutoGroup_triggered()
mark_divelist_changed(true);
}
-void MainWindow::on_actionToggleZoom_triggered()
-{
- zoomed_plot = !zoomed_plot;
- ui.ProfileWidget->refresh();
-}
-
void MainWindow::on_actionYearlyStatistics_triggered()
{
QTreeView *view = new QTreeView();
@@ -1066,4 +1060,10 @@ void MainWindow::on_profSAC_clicked(bool triggered)
TOOLBOX_PREF_PROFILE(show_sac);
}
+void MainWindow::on_profScaled_clicked(bool triggered)
+{
+ prefs.zoomed_plot = triggered;
+ TOOLBOX_PREF_PROFILE(zoomed_plot);
+}
+
#undef TOOLBOX_PREF_PROFILE