mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49:37 -05:00
* Added to Format Size
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@819 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
27cfb255eb
commit
3a1d986b53
@ -26,6 +26,7 @@
|
|||||||
#include "rsiface/rsexpr.h"
|
#include "rsiface/rsexpr.h"
|
||||||
#include "rsiface/rsfiles.h"
|
#include "rsiface/rsfiles.h"
|
||||||
#include "rsiface/rspeers.h"
|
#include "rsiface/rspeers.h"
|
||||||
|
#include "util/misc.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
@ -484,8 +485,10 @@ void SearchDialog::resultsToTree(std::string txt, std::list<FileDetail> results)
|
|||||||
/*
|
/*
|
||||||
* to facilitate downlaods we need to save the file size too
|
* to facilitate downlaods we need to save the file size too
|
||||||
*/
|
*/
|
||||||
QVariant * variant = new QVariant((qulonglong)it->size);
|
//QVariant * variant = new QVariant((qulonglong)it->size);
|
||||||
item->setText(SR_SIZE_COL, QString(variant->toString()));
|
//item->setText(SR_SIZE_COL, QString(variant->toString()));
|
||||||
|
item->setText(SR_SIZE_COL, misc::friendlyUnit(it->size));
|
||||||
|
|
||||||
|
|
||||||
// I kept the color code green=online, grey=offline
|
// I kept the color code green=online, grey=offline
|
||||||
// Qt::blue is very dark and hardly compatible with the black text on it.
|
// Qt::blue is very dark and hardly compatible with the black text on it.
|
||||||
|
Loading…
Reference in New Issue
Block a user