mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Reenabled copying the diveplan to dive notes.
Gas consumption calculation fixed. Pressure difference still needs cylinder size to be set. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
04b6b6aaf9
commit
1093d6235b
2 changed files with 7 additions and 8 deletions
|
@ -1069,7 +1069,8 @@ bool DivePlannerPointsModel::recalcQ()
|
|||
|
||||
void DivePlannerPointsModel::emitCylinderModelEdited()
|
||||
{
|
||||
cylinderModelEdited();
|
||||
if (isPlanner())
|
||||
cylinderModelEdited();
|
||||
}
|
||||
|
||||
int DivePlannerPointsModel::columnCount(const QModelIndex &parent) const
|
||||
|
@ -1199,13 +1200,13 @@ DivePlannerPointsModel *DivePlannerPointsModel::instance()
|
|||
|
||||
void DivePlannerPointsModel::setBottomSac(int sac)
|
||||
{
|
||||
diveplan.bottomsac = sac;
|
||||
diveplan.bottomsac = sac * 1000;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setDecoSac(int sac)
|
||||
{
|
||||
diveplan.decosac = sac;
|
||||
diveplan.decosac = sac * 1000;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue