mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:40:04 +00:00 
			
		
		
		
	Resize tooltip label every frame to account for text changes
This commit is contained in:
		
							parent
							
								
									73adeda604
								
							
						
					
					
						commit
						4a92f11d00
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -110,6 +110,7 @@ void Show(const std::string& text, const QPointF& mouseGlobalPos) | |||
|          types::FontCategory::Tooltip); | ||||
|       tooltipLabel_->setFont(font); | ||||
|       tooltipLabel_->setText(QString::fromStdString(displayText)); | ||||
|       tooltipLabel_->resize(tooltipLabel_->sizeHint()); | ||||
| 
 | ||||
|       // Get the screen the label will be displayed on
 | ||||
|       QScreen* screen = QGuiApplication::screenAt(mouseGlobalPos.toPoint()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat