From 2bcdfca79f2a0d5845e838bf421b3fb533620c4b Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Thu, 30 Jun 2022 23:28:00 +0200 Subject: [PATCH] Replace toAscii() with toLatin1() Another qt5 migration fix --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 23e6211..08c1f2c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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);