kopia lustrzana https://github.com/f4exb/sdrangel
				
				
				
			Replace deprecated FontMetrics.width() with horizontalAdvance
							rodzic
							
								
									a84f2c0aeb
								
							
						
					
					
						commit
						01227143ac
					
				|  | @ -92,7 +92,7 @@ void ScaleEngine::calcCharSize() | |||
| 		float size; | ||||
| 		float max = 0.0f; | ||||
| 		for(i = 0; i < str.length(); i++) { | ||||
| 			size = fontMetrics.width(QString(str[i])); | ||||
| 			size = fontMetrics.horizontalAdvance(QString(str[i])); | ||||
| 			if(size > max) | ||||
| 				max = size; | ||||
| 		} | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Jiří Pinkava
						Jiří Pinkava