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:
csoler 2013-09-01 21:08:57 +00:00
parent a6905df48c
commit 8239c69963

View File

@ -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"));