Change int to qint64

This commit is contained in:
Jonas Kvinge
2021-02-10 18:27:40 +01:00
parent 1f9af7a1e4
commit b3681002a7
6 changed files with 12 additions and 12 deletions

View File

@@ -326,7 +326,7 @@ QString DateItemDelegate::displayText(const QVariant &value, const QLocale &loca
Q_UNUSED(locale);
bool ok = false;
int time = value.toInt(&ok);
qint64 time = value.toLongLong(&ok);
if (!ok || time == -1)
return QString();
@@ -338,7 +338,7 @@ QString DateItemDelegate::displayText(const QVariant &value, const QLocale &loca
QString LastPlayedItemDelegate::displayText(const QVariant &value, const QLocale &locale) const {
bool ok = false;
const int time = value.toInt(&ok);
const qint64 time = value.toLongLong(&ok);
if (!ok || time == -1)
return tr("Never");