Replace toAscii() with toLatin1()

Another qt5 migration fix
This commit is contained in:
Sebastian Lohff 2022-06-30 23:28:00 +02:00
parent a47f434771
commit 2bcdfca79f
1 changed files with 1 additions and 1 deletions

View File

@ -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);