diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-02 10:37:07 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-02 10:37:07 -0800 |
commit | d29d0e7a5d969523f7a3da1ca04c668e7b3783d9 (patch) | |
tree | 1f626e73f479243608845fe157f4e0ddb0fc7d7b | |
parent | 9b07acbee82a48dc80a3b75cc8a8dcd016d03593 (diff) | |
download | subsurface-d29d0e7a5d969523f7a3da1ca04c668e7b3783d9.tar.gz |
Revert "Switch profile button events, clicked to toggled"
This reverts commit 63f7f37e4617b15af9bbd1894d529da2c22a34f1.
For odd reasons this appears to make the mean depth line disappear. This
will require some further analysis, but for now I'll just revert it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/mainwindow.cpp | 26 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 26 |
2 files changed, 26 insertions, 26 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 02ac2337b..d2d317984 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1043,67 +1043,67 @@ void MainWindow::editCurrentDive() s.setValue(#PREFS, triggered); \ PreferencesDialog::instance()->emitSettingsChanged(); -void MainWindow::on_profCalcAllTissues_toggled(bool triggered) +void MainWindow::on_profCalcAllTissues_clicked(bool triggered) { prefs.calc_all_tissues = triggered; TOOLBOX_PREF_PROFILE(calcalltissues); } -void MainWindow::on_profCalcCeiling_toggled(bool triggered) +void MainWindow::on_profCalcCeiling_clicked(bool triggered) { prefs.profile_calc_ceiling = triggered; TOOLBOX_PREF_PROFILE(calcceiling); } -void MainWindow::on_profDcCeiling_toggled(bool triggered) +void MainWindow::on_profDcCeiling_clicked(bool triggered) { prefs.profile_dc_ceiling = triggered; TOOLBOX_PREF_PROFILE(dcceiling); } -void MainWindow::on_profEad_toggled(bool triggered) +void MainWindow::on_profEad_clicked(bool triggered) { prefs.ead = triggered; TOOLBOX_PREF_PROFILE(ead); } -void MainWindow::on_profIncrement3m_toggled(bool triggered) +void MainWindow::on_profIncrement3m_clicked(bool triggered) { prefs.calc_ceiling_3m_incr = triggered; TOOLBOX_PREF_PROFILE(calcceiling3m); } -void MainWindow::on_profMod_toggled(bool triggered) +void MainWindow::on_profMod_clicked(bool triggered) { prefs.mod = triggered; TOOLBOX_PREF_PROFILE(mod); } -void MainWindow::on_profNtl_tts_toggled(bool triggered) +void MainWindow::on_profNtl_tts_clicked(bool triggered) { prefs.calc_ndl_tts = triggered; TOOLBOX_PREF_PROFILE(calcndltts); } -void MainWindow::on_profPhe_toggled(bool triggered) +void MainWindow::on_profPhe_clicked(bool triggered) { prefs.pp_graphs.phe = triggered; TOOLBOX_PREF_PROFILE(phegraph); } -void MainWindow::on_profPn2_toggled(bool triggered) +void MainWindow::on_profPn2_clicked(bool triggered) { prefs.pp_graphs.pn2 = triggered; TOOLBOX_PREF_PROFILE(pn2graph); } -void MainWindow::on_profPO2_toggled(bool triggered) +void MainWindow::on_profPO2_clicked(bool triggered) { prefs.pp_graphs.po2 = triggered; TOOLBOX_PREF_PROFILE(po2graph); } -void MainWindow::on_profRuler_toggled(bool triggered) +void MainWindow::on_profRuler_clicked(bool triggered) { TOOLBOX_PREF_PROFILE(rulergraph); } -void MainWindow::on_profSAC_toggled(bool triggered) +void MainWindow::on_profSAC_clicked(bool triggered) { prefs.show_sac = triggered; TOOLBOX_PREF_PROFILE(show_sac); } -void MainWindow::on_profScaled_toggled(bool triggered) +void MainWindow::on_profScaled_clicked(bool triggered) { prefs.zoomed_plot = triggered; TOOLBOX_PREF_PROFILE(zoomed_plot); diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 1db3d5ad3..57869634a 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -129,19 +129,19 @@ slots: void on_actionImportDiveLog_triggered(); /* TODO: Move those slots below to it's own class */ - void on_profCalcAllTissues_toggled(bool triggered); - void on_profCalcCeiling_toggled(bool triggered); - void on_profDcCeiling_toggled(bool triggered); - void on_profEad_toggled(bool triggered); - void on_profIncrement3m_toggled(bool triggered); - void on_profMod_toggled(bool triggered); - void on_profNtl_tts_toggled(bool triggered); - void on_profPO2_toggled(bool triggered); - void on_profPhe_toggled(bool triggered); - void on_profPn2_toggled(bool triggered); - void on_profRuler_toggled(bool triggered); - void on_profSAC_toggled(bool triggered); - void on_profScaled_toggled(bool triggered); + void on_profCalcAllTissues_clicked(bool triggered); + void on_profCalcCeiling_clicked(bool triggered); + void on_profDcCeiling_clicked(bool triggered); + void on_profEad_clicked(bool triggered); + void on_profIncrement3m_clicked(bool triggered); + void on_profMod_clicked(bool triggered); + void on_profNtl_tts_clicked(bool triggered); + void on_profPO2_clicked(bool triggered); + void on_profPhe_clicked(bool triggered); + void on_profPn2_clicked(bool triggered); + void on_profRuler_clicked(bool triggered); + void on_profSAC_clicked(bool triggered); + void on_profScaled_clicked(bool triggered); protected: void closeEvent(QCloseEvent *); |