mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	printing: make meandepth available to print templates
Adding additional exported value meandepth to be available in the print
template language.
A possible use of this would be
<td class="fieldTitle">
    <h1> Max / mean depth </h1>
</td>
<td class="fieldData">
    <p> {{ dive.depth }} / {{ dive.meandepth }} </p>
</td>
Reported-by: Rahul Swaminathan <rahul.swaminathan@gmail.com>
Signed-off-by: Jason Bramwell <jb2cool@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
			
			
This commit is contained in:
		
							parent
							
								
									12e61e8c12
								
							
						
					
					
						commit
						a70eccea29
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -541,6 +541,8 @@ QVariant TemplateLayout::getValue(QString list, QString property, const State &s | |||
| 			return d->duration.seconds == 0 && d->dc.duration.seconds == 0; | ||||
| 		} else if (property == "depth") { | ||||
| 			return get_depth_string(d->dc.maxdepth.mm, true, true); | ||||
| 		} else if (property == "meandepth") { | ||||
| 			return get_depth_string(d->dc.meandepth.mm, true, true); | ||||
| 		} else if (property == "divemaster") { | ||||
| 			return d->diveguide; | ||||
| 		} else if (property == "diveguide") { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue