mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: don't filter cylinders
In the planner we used to filter out "unused" cylinders as in the equipment tab. It is unclear whether that makes sense or can even easily be reproduced, since such cylinders have to come from an imported dive. To be on the save side, let's not do this. Replace the CylindersFilteredModel introduced recently by a plain CylindersModel. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									190a2a876e
								
							
						
					
					
						commit
						1336ea755b
					
				
					 4 changed files with 25 additions and 25 deletions
				
			
		|  | @ -126,7 +126,7 @@ void PlannerShared::set_o2narcotic(bool value) | |||
| { | ||||
| 	qPrefDivePlanner::set_o2narcotic(value); | ||||
| 	DivePlannerPointsModel::instance()->emitDataChanged(); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->model()->updateBestMixes(); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->updateBestMixes(); | ||||
| } | ||||
| 
 | ||||
| double PlannerShared::bottompo2() | ||||
|  | @ -136,7 +136,7 @@ double PlannerShared::bottompo2() | |||
| void PlannerShared::set_bottompo2(double value) | ||||
| { | ||||
| 	qPrefDivePlanner::set_bottompo2((int) (value * 1000.0)); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->model()->updateBestMixes(); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->updateBestMixes(); | ||||
| } | ||||
| 
 | ||||
| double PlannerShared::decopo2() | ||||
|  | @ -148,8 +148,8 @@ void PlannerShared::set_decopo2(double value) | |||
| 	pressure_t olddecopo2; | ||||
| 	olddecopo2.mbar = prefs.decopo2; | ||||
| 	qPrefDivePlanner::instance()->set_decopo2((int) (value * 1000.0)); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->model()->updateDecoDepths(olddecopo2); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->model()->updateBestMixes(); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->updateDecoDepths(olddecopo2); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->updateBestMixes(); | ||||
| } | ||||
| 
 | ||||
| int PlannerShared::bestmixend() | ||||
|  | @ -159,5 +159,5 @@ int PlannerShared::bestmixend() | |||
| void PlannerShared::set_bestmixend(int value) | ||||
| { | ||||
| 	qPrefDivePlanner::set_bestmixend(units_to_depth(value).mm); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->model()->updateBestMixes(); | ||||
| 	DivePlannerPointsModel::instance()->cylindersModel()->updateBestMixes(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue