fixed up Qt version issue.

QDateTime::toMSecsSinceEpoch() is not available in old versions of Qt.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6674 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2013-09-02 03:40:59 +00:00
parent 93bac8e7bc
commit f74de6242d
2 changed files with 2 additions and 2 deletions

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::fromTime_t(qi64Value/1000);
QDateTime qdtLastDL = QDateTime::fromTime_t(qi64Value);
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"));

View File

@ -945,7 +945,7 @@ int TransfersDialog::addItem(int row, const FileInfo &fileInfo, const std::map<s
}
/*Get Last Access on File */
if (file.exists()) {
qi64LastDL = file.lastModified().toMSecsSinceEpoch();
qi64LastDL = file.lastModified().toTime_t();
}
}
QString strPath = QString::fromUtf8(fileInfo.path.c_str());