diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index d0c5a0790..4027c6d61 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -292,6 +292,9 @@ MainWindow::MainWindow() : QMainWindow(), connect(ui.profTankbar, &QAction::triggered, sWrapper->techDetails, &TechnicalDetailsSettings::setTankBar); connect(ui.profTissues, &QAction::triggered, sWrapper->techDetails, &TechnicalDetailsSettings::setPercentageGraph); + connect(ui.profTissues, &QAction::triggered, this, &MainWindow::unsetProfHR); + connect(ui.profHR, &QAction::triggered, this, &MainWindow::unsetProfTissues); + connect(ui.profPhe, &QAction::triggered, sWrapper->pp_gas, &PartialPressureGasSettings::setShowPhe); connect(ui.profPn2, &QAction::triggered, sWrapper->pp_gas, &PartialPressureGasSettings::setShowPn2); connect(ui.profPO2, &QAction::triggered, sWrapper->pp_gas, &PartialPressureGasSettings::setShowPo2); @@ -2037,3 +2040,19 @@ void MainWindow::hideProgressBar() progressDialog = NULL; } } + +void MainWindow::unsetProfHR() +{ + SettingsObjectWrapper *sWrapper = SettingsObjectWrapper::instance(); + + ui.profHR->setChecked(false); + sWrapper->techDetails->setHRgraph(false); +} + +void MainWindow::unsetProfTissues() +{ + SettingsObjectWrapper *sWrapper = SettingsObjectWrapper::instance(); + + ui.profTissues->setChecked(false); + sWrapper->techDetails->setPercentageGraph(false); +} |