mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Toggle showing average depth
Add additional check box in "preferences->graph" section that allows users to hide average depth on dive profile. By default this option is checked to show average depth. Fixes #475 Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									df7d7d4981
								
							
						
					
					
						commit
						7696fbf9cd
					
				
					 5 changed files with 21 additions and 1 deletions
				
			
		|  | @ -429,6 +429,10 @@ void ProfileWidget2::plotDives(QList<dive *> dives) | |||
| 	cylinderPressureAxis->setMaximum(pInfo.maxpressure); | ||||
| 
 | ||||
| 	rulerItem->setPlotInfo(pInfo); | ||||
| 	if (prefs.show_average_depth) | ||||
| 		meanDepth->setVisible(true); | ||||
| 	else | ||||
| 		meanDepth->setVisible(false); | ||||
| 	meanDepth->setMeanDepth(pInfo.meandepth); | ||||
| 	meanDepth->setLine(0, 0, timeAxis->posAtValue(d->duration.seconds), 0); | ||||
| 	meanDepth->animateMoveTo(3, profileYAxis->posAtValue(pInfo.meandepth)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue