mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Hide avg max depth thingie
We don't set it so just hide it. Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
		
							parent
							
								
									1ec0d43e63
								
							
						
					
					
						commit
						cd27c1cd44
					
				
					 3 changed files with 10 additions and 0 deletions
				
			
		|  | @ -128,6 +128,12 @@ void MinMaxAvgWidget::overrideMaxToolTipText(const QString &newTip) | |||
| 	d->maxValue->setToolTip(newTip); | ||||
| } | ||||
| 
 | ||||
| void MinMaxAvgWidget::setAvgVisibility(const bool visible) | ||||
| { | ||||
| 	d->avgIco->setVisible(visible); | ||||
| 	d->avgValue->setVisible(visible); | ||||
| } | ||||
| 
 | ||||
| RenumberDialog *RenumberDialog::instance() | ||||
| { | ||||
| 	static RenumberDialog *self = new RenumberDialog(MainWindow::instance()); | ||||
|  |  | |||
|  | @ -43,6 +43,7 @@ public: | |||
| 	void overrideMinToolTipText(const QString &newTip); | ||||
| 	void overrideAvgToolTipText(const QString &newTip); | ||||
| 	void overrideMaxToolTipText(const QString &newTip); | ||||
| 	void setAvgVisibility(const bool visible); | ||||
| 	void clear(); | ||||
| 
 | ||||
| private: | ||||
|  |  | |||
|  | @ -50,6 +50,9 @@ void TabDiveStatistics::updateData() | |||
| 	// deepest and shallowest dive - let's just not set it
 | ||||
| 	// ui->depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true));
 | ||||
| 
 | ||||
| 	// Also hide the avgIco, so its clear that its not there.
 | ||||
| 	ui->depthLimits->overrideAvgToolTipText(""); | ||||
| 	ui->depthLimits->setAvgVisibility(false); | ||||
| 
 | ||||
| 	if (stats_selection.max_sac.mliter) | ||||
| 		ui->sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min"))); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue