DateItemDelegate: Show blank for zero or invalid time
This commit is contained in:
parent
377f54700d
commit
b69b3228be
|
@ -329,7 +329,7 @@ QString DateItemDelegate::displayText(const QVariant &value, const QLocale &loca
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
qint64 time = value.toLongLong(&ok);
|
qint64 time = value.toLongLong(&ok);
|
||||||
|
|
||||||
if (!ok || time == -1) {
|
if (!ok || time <= 0) {
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue