mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
93bac8e7bc
commit
f74de6242d
@ -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"));
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user