Replace toAscii() with toLatin1()
Another qt5 migration fix
This commit is contained in:
		
							parent
							
								
									a47f434771
								
							
						
					
					
						commit
						2bcdfca79f
					
				| 
						 | 
				
			
			@ -597,7 +597,7 @@ strFileName = QFileDialog::getOpenFileName(this, tr("Öffne Datei zum Fragenkata
 | 
			
		|||
		QString strText = pQuestion->text();
 | 
			
		||||
		int idx = strText.indexOf(QRegExp("\\([A-Z]\\)"));
 | 
			
		||||
		if (idx == -1) continue;
 | 
			
		||||
		int iCorrect = pQuestion->text().at(idx+1).toAscii() - 'A';
 | 
			
		||||
		int iCorrect = pQuestion->text().at(idx+1).toLatin1() - 'A';
 | 
			
		||||
		if (pQuestion->countAnswer() > iCorrect)
 | 
			
		||||
			pQuestion->answerAt(iCorrect).setCorrect(true);
 | 
			
		||||
		strText.remove(idx, 3);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue