diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-02-27 22:59:41 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-27 18:55:54 -0800 |
commit | 63f7f37e4617b15af9bbd1894d529da2c22a34f1 (patch) | |
tree | 1f4dff886040937a141259afe6c2be5958d87725 /qt-ui/mainwindow.cpp | |
parent | 619d4acb6fd77386ff2f421a65148636f3d9a1ce (diff) | |
download | subsurface-63f7f37e4617b15af9bbd1894d529da2c22a34f1.tar.gz |
Switch profile button events, clicked to toggled
This is needed so the underlaying struct preferences prefs, will be
updated when we set the buttons to there previous state after we
loaded the settings.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 59ebf2f25..19b97fd45 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1000,67 +1000,67 @@ void MainWindow::editCurrentDive() s.setValue(#PREFS, triggered); \ PreferencesDialog::instance()->emitSettingsChanged(); -void MainWindow::on_profCalcAllTissues_clicked(bool triggered) +void MainWindow::on_profCalcAllTissues_toggled(bool triggered) { prefs.calc_all_tissues = triggered; TOOLBOX_PREF_PROFILE(calcalltissues); } -void MainWindow::on_profCalcCeiling_clicked(bool triggered) +void MainWindow::on_profCalcCeiling_toggled(bool triggered) { prefs.profile_calc_ceiling = triggered; TOOLBOX_PREF_PROFILE(calcceiling); } -void MainWindow::on_profDcCeiling_clicked(bool triggered) +void MainWindow::on_profDcCeiling_toggled(bool triggered) { prefs.profile_dc_ceiling = triggered; TOOLBOX_PREF_PROFILE(dcceiling); } -void MainWindow::on_profEad_clicked(bool triggered) +void MainWindow::on_profEad_toggled(bool triggered) { prefs.ead = triggered; TOOLBOX_PREF_PROFILE(ead); } -void MainWindow::on_profIncrement3m_clicked(bool triggered) +void MainWindow::on_profIncrement3m_toggled(bool triggered) { prefs.calc_ceiling_3m_incr = triggered; TOOLBOX_PREF_PROFILE(calcceiling3m); } -void MainWindow::on_profMod_clicked(bool triggered) +void MainWindow::on_profMod_toggled(bool triggered) { prefs.mod = triggered; TOOLBOX_PREF_PROFILE(mod); } -void MainWindow::on_profNtl_tts_clicked(bool triggered) +void MainWindow::on_profNtl_tts_toggled(bool triggered) { prefs.calc_ndl_tts = triggered; TOOLBOX_PREF_PROFILE(calcndltts); } -void MainWindow::on_profPhe_clicked(bool triggered) +void MainWindow::on_profPhe_toggled(bool triggered) { prefs.pp_graphs.phe = triggered; TOOLBOX_PREF_PROFILE(phegraph); } -void MainWindow::on_profPn2_clicked(bool triggered) +void MainWindow::on_profPn2_toggled(bool triggered) { prefs.pp_graphs.pn2 = triggered; TOOLBOX_PREF_PROFILE(pn2graph); } -void MainWindow::on_profPO2_clicked(bool triggered) +void MainWindow::on_profPO2_toggled(bool triggered) { prefs.pp_graphs.po2 = triggered; TOOLBOX_PREF_PROFILE(po2graph); } -void MainWindow::on_profRuler_clicked(bool triggered) +void MainWindow::on_profRuler_toggled(bool triggered) { TOOLBOX_PREF_PROFILE(rulergraph); } -void MainWindow::on_profSAC_clicked(bool triggered) +void MainWindow::on_profSAC_toggled(bool triggered) { prefs.show_sac = triggered; TOOLBOX_PREF_PROFILE(show_sac); } -void MainWindow::on_profScaled_clicked(bool triggered) +void MainWindow::on_profScaled_toggled(bool triggered) { prefs.zoomed_plot = triggered; TOOLBOX_PREF_PROFILE(zoomed_plot); |