Commit 09ed38e7 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Port away from deprecated KScoreDialog::setConfigGroup(const QString& group = QString())

parent 3612185f
......@@ -500,7 +500,7 @@ void KolfWindow::gameOver()
CourseInfo courseInfo;
game->courseInfo(courseInfo, game->curFilename());
scoreDialog->setConfigGroup(courseInfo.untranslatedName + QString(" Highscores"));
scoreDialog->setConfigGroup(qMakePair(QByteArray(courseInfo.untranslatedName.toUtf8() + " Highscores"), i18n("High Scores for %1", courseInfo.name)));
for (HighScoreList::Iterator it = highScores.begin(); it != highScores.end(); ++it)
{
......@@ -527,7 +527,7 @@ void KolfWindow::showHighScores()
CourseInfo courseInfo;
game->courseInfo(courseInfo, game->curFilename());
scoreDialog->setConfigGroup(courseInfo.untranslatedName + QString(" Highscores"));
scoreDialog->setConfigGroup(qMakePair(QByteArray(courseInfo.untranslatedName.toUtf8() + " Highscores"), i18n("High Scores for %1", courseInfo.name)));
scoreDialog->setComment(i18n("High Scores for %1", courseInfo.name));
scoreDialog->show();
}
......
......@@ -247,7 +247,7 @@ void NewGameDialog::showHighscores()
{
KScoreDialog *scoreDialog = new KScoreDialog(KScoreDialog::Name | KScoreDialog::Custom1 | KScoreDialog::Score, this);
scoreDialog->addField(KScoreDialog::Custom1, i18n("Par"), "Par");
scoreDialog->setConfigGroup(info[currentCourse].untranslatedName + QString(" Highscores"));
scoreDialog->setConfigGroup(qMakePair(QByteArray(info[currentCourse].untranslatedName.toUtf8() + " Highscores"), i18n("High Scores for %1", info[currentCourse].name)));
scoreDialog->setComment(i18n("High Scores for %1", info[currentCourse].name));
scoreDialog->show();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment