mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Correctly hook up visibility toggle for tissue heat map
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									0296a456b2
								
							
						
					
					
						commit
						c907efb22e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -359,6 +359,7 @@ void DiveHeartrateItem::paint(QPainter *painter, const QStyleOptionGraphicsItem | ||||||
| 
 | 
 | ||||||
| DivePercentageItem::DivePercentageItem(int i) | DivePercentageItem::DivePercentageItem(int i) | ||||||
| { | { | ||||||
|  | 	connect(SettingsObjectWrapper::instance()->techDetails, &TechnicalDetailsSettings::percentageGraphChanged, this, &DivePercentageItem::setVisible); | ||||||
| 	tissueIndex = i; | 	tissueIndex = i; | ||||||
| 	settingsChanged(); | 	settingsChanged(); | ||||||
| } | } | ||||||
|  | @ -426,7 +427,6 @@ void DivePercentageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	painter->restore(); | 	painter->restore(); | ||||||
| 	connect(SettingsObjectWrapper::instance()->techDetails, &TechnicalDetailsSettings::percentageGraphChanged, this, &DivePercentageItem::setVisible); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| DiveAmbPressureItem::DiveAmbPressureItem() | DiveAmbPressureItem::DiveAmbPressureItem() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue