mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Signal that the model changed when editing plan specific information.
Signal that the model changed when editing plan specific information, when you changes the ATM pressure or any other information, the graphic of the plan will be generated again to mirror your actual dive. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
545c76992a
commit
b4a609f46f
1 changed files with 6 additions and 0 deletions
|
@ -983,26 +983,31 @@ void DivePlannerPointsModel::createPlan()
|
|||
void DivePlannerPointsModel::setBottomSac(int sac)
|
||||
{
|
||||
diveplan.bottomsac = sac;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setDecoSac(int sac)
|
||||
{
|
||||
diveplan.decosac = sac;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setGFHigh(short int gfhigh)
|
||||
{
|
||||
diveplan.gfhigh = gfhigh;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setGFLow(short int ghflow)
|
||||
{
|
||||
diveplan.gflow = ghflow;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setSurfacePressure(int pressure)
|
||||
{
|
||||
diveplan.surface_pressure = pressure;
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setLastStop6m(bool value)
|
||||
|
@ -1012,6 +1017,7 @@ void DivePlannerPointsModel::setLastStop6m(bool value)
|
|||
void DivePlannerPointsModel::setStartTime(const QTime& t)
|
||||
{
|
||||
diveplan.when = t.msec();
|
||||
emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
|
||||
}
|
||||
|
||||
bool divePointsLessThan(const divedatapoint& p1, const divedatapoint& p2){
|
||||
|
|
Loading…
Add table
Reference in a new issue