mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
Merge pull request #2932 from defnax/Fix-searches
Fix size & age column
This commit is contained in:
commit
1d1138d0cb
1 changed files with 3 additions and 3 deletions
|
@ -1324,10 +1324,10 @@ void SearchDialog::insertFile(qulonglong searchId, const FileDetail& file, int s
|
||||||
* to facilitate downloads we need to save the file size too
|
* to facilitate downloads we need to save the file size too
|
||||||
*/
|
*/
|
||||||
|
|
||||||
item->setText(SR_SIZE_COL, misc::friendlyUnit(file.size));
|
item->setText(SR_SIZE_COL, QString::number(file.size));
|
||||||
item->setData(SR_SIZE_COL, ROLE_SORT, (qulonglong) file.size);
|
item->setData(SR_SIZE_COL, ROLE_SORT, (qulonglong) file.size);
|
||||||
item->setText(SR_AGE_COL, misc::timeRelativeToNow(file.mtime));
|
item->setText(SR_AGE_COL, QString::number(file.mtime));
|
||||||
item->setData(SR_AGE_COL, ROLE_SORT, file.mtime);
|
item->setData(SR_AGE_COL, ROLE_SORT, file.mtime);
|
||||||
item->setTextAlignment( SR_SIZE_COL, Qt::AlignRight );
|
item->setTextAlignment( SR_SIZE_COL, Qt::AlignRight );
|
||||||
item->setTextAlignment( SR_AGE_COL, Qt::AlignCenter );
|
item->setTextAlignment( SR_AGE_COL, Qt::AlignCenter );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue