Commit 5c96eb1a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use ++x

parent a122fc28
......@@ -292,7 +292,7 @@ static int maxDateColumnWidth(const QFontMetrics &fm)
{
int width = 0;
QDateTime date(QDate::currentDate(), QTime(23, 59));
for (int x = 0; x < 10; x++, date = date.addDays(-1)) {
for (int x = 0; x < 10; ++x, date = date.addDays(-1)) {
QString txt = QLatin1Char(' ') + QLocale().toString(date, QLocale::ShortFormat) + QLatin1Char(' ');
width = qMax(width, fm.width(txt));
}
......
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