mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ void DLListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
||||||
case COLUMN_LASTDL:
|
case COLUMN_LASTDL:
|
||||||
qi64Value = index.data().value<qint64>();
|
qi64Value = index.data().value<qint64>();
|
||||||
if (qi64Value < std::numeric_limits<qint64>::max()){
|
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"));
|
painter->drawText(option.rect, Qt::AlignCenter, qdtLastDL.toString("yyyy-MM-dd_hh:mm:ss"));
|
||||||
} else {
|
} else {
|
||||||
painter->drawText(option.rect, Qt::AlignCenter, tr("File Never Seen"));
|
painter->drawText(option.rect, Qt::AlignCenter, tr("File Never Seen"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue