mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Profile heatmap/heartrate: Only enable max one of these at same time
Only allow to enable maximum one of both items tissue heatmap or heartrate in profile. This is done by always switching off the other one at the moment you turn on one of the two items (heatmap or heartrate). Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
b38eb45b29
commit
cfd4c42829
2 changed files with 21 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -149,6 +149,8 @@ slots:
|
|||
void setDefaultState();
|
||||
void setAutomaticTitle();
|
||||
void cancelCloudStorageOperation();
|
||||
void unsetProfHR();
|
||||
void unsetProfTissues();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *);
|
||||
|
|
Loading…
Add table
Reference in a new issue