Commit 61f86a5c authored by Volker Krause's avatar Volker Krause

Port away from KLocale::use12Clock

Based on porting instructions from John Layt.
parent 39aa0cc1
......@@ -763,7 +763,7 @@ void CalPrintPluginBase::drawTimeLine(QPainter &p, const QTime &fromTime,
if (newY < box.bottom()) {
QFont oldFont(p.font());
// draw the time:
if (!KLocale::global()->use12Clock()) {
if (!QLocale().timeFormat().contains(QLatin1String("AP"))) { // 12h clock
p.drawLine(xcenter, (int)newY, box.right(), (int)newY);
if (cellHeight > 30) {
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