mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	DiveObjectHelper: expose number of dives in a trip
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									4923aecc9d
								
							
						
					
					
						commit
						6a51c14365
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -360,6 +360,12 @@ QString DiveObjectHelper::tripMeta() const | |||
| 	return ret; | ||||
| } | ||||
| 
 | ||||
| int DiveObjectHelper::tripNrDives() const | ||||
| { | ||||
| 	struct dive_trip *dt = m_dive->divetrip; | ||||
| 	return dt ? dt->nrdives : 0; | ||||
| } | ||||
| 
 | ||||
| int DiveObjectHelper::maxcns() const | ||||
| { | ||||
| 	return m_dive->maxcns; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue