mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 15:09:33 -05:00
fixed Qt version issue with QDateTime method
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6667 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a6905df48c
commit
8239c69963
@ -222,7 +222,7 @@ void DLListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
||||
case COLUMN_LASTDL:
|
||||
qi64Value = index.data().value<qint64>();
|
||||
if (qi64Value < std::numeric_limits<qint64>::max()){
|
||||
QDateTime qdtLastDL = QDateTime::fromMSecsSinceEpoch(qi64Value);
|
||||
QDateTime qdtLastDL = QDateTime::fromTime_t(qi64Value/1000);
|
||||
painter->drawText(option.rect, Qt::AlignCenter, qdtLastDL.toString("yyyy-MM-dd_hh:mm:ss"));
|
||||
} else {
|
||||
painter->drawText(option.rect, Qt::AlignCenter, tr("File Never Seen"));
|
||||
|
Loading…
Reference in New Issue
Block a user