Commit dc23a7b0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

make it compile against qt5.15

parent af8dc1b9
......@@ -1842,16 +1842,17 @@ QString KADateTime::toString(TimeFormat format) const
result += QLatin1Char(' ');
break;
case LocalDate:
case LocalDate: {
QLocale l;
if (d->dateOnly())
result = d->date().toString(Qt::SystemLocaleShortDate);
result = l.toString(d->date(), QLocale::ShortFormat);
else
result = d->dt().toString(Qt::SystemLocaleShortDate);
result = l.toString(d->dt(), QLocale::ShortFormat);
if (result.isEmpty() || d->specType == LocalZone)
return result;
result += QLatin1Char(' ');
break;
}
default:
return result;
}
......
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