mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 18:20:04 +00:00 
			
		
		
		
	Alert dialog should display a fixed pitch font
This commit is contained in:
		
							parent
							
								
									5716d89d52
								
							
						
					
					
						commit
						5f661df9fd
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -54,7 +54,13 @@ AlertDialog::AlertDialog(QWidget* parent) : | |||
| 
 | ||||
|    // Set monospace font for alert view
 | ||||
|    QFont monospaceFont("?"); | ||||
|    monospaceFont.setStyleHint(QFont::TypeWriter); | ||||
|    monospaceFont.setStyleHint(QFont::StyleHint::TypeWriter); | ||||
| 
 | ||||
|    if (!monospaceFont.fixedPitch()) | ||||
|    { | ||||
|       monospaceFont.setStyleHint(QFont::StyleHint::Monospace); | ||||
|    } | ||||
| 
 | ||||
|    ui->alertText->setFont(monospaceFont); | ||||
| 
 | ||||
|    // Add Go button to button box
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat