Commit ccbe3286 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Get rid of deprecated shortDayName()

parent d6a6d8e6
......@@ -1479,7 +1479,7 @@ void KGrGame::saveGame() // Save game ID, score and level.
QTime now = QTime::currentTime();
QString saved;
QString day;
day = today.shortDayName (today.dayOfWeek());
day = QLocale().dayName(today.dayOfWeek(), QLocale::ShortFormat);
saved = saved.sprintf
("%-6s %03d %03ld %7ld %s %04d-%02d-%02d %02d:%02d\n",
qPrintable(prefix), level, lives, startScore,
......@@ -1751,7 +1751,7 @@ void KGrGame::checkHighScore()
QDate today = QDate::currentDate();
QString hsDate;
QString day = today.shortDayName (today.dayOfWeek());
QString day = QLocale().dayName(today.dayOfWeek(), QLocale::ShortFormat);
hsDate = hsDate.sprintf
("%s %04d-%02d-%02d",
qPrintable(day),
......
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