fixed defaut zoom 1.0->1.2, removed ref to fromSecsSinceEpoch

This commit is contained in:
csoler 2020-10-18 16:55:28 +02:00
parent d7a5af62fa
commit 8df74ee00d
2 changed files with 2 additions and 2 deletions

View file

@ -219,7 +219,7 @@ void ChannelPostDelegate::paint(QPainter * painter, const QStyleOptionViewItem &
y += font_height;
y += font_height/2.0;
QString info_text = QDateTime::fromSecsSinceEpoch(post.mMeta.mPublishTs).toString(Qt::DefaultLocaleShortDate);
QString info_text = QDateTime::fromMSecsSinceEpoch(qint64(1000)*post.mMeta.mPublishTs).toString(Qt::DefaultLocaleShortDate);
if(post.mCount > 0)
info_text += ", " + QString::number(post.mCount)+ " " +((post.mCount>1)?tr("files"):tr("file")) + " (" + misc::friendlyUnit(qulonglong(post.mSize)) + ")" ;