* 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:
defnax 2008-11-18 12:15:21 +00:00
parent 27cfb255eb
commit 3a1d986b53

View File

@ -26,6 +26,7 @@
#include "rsiface/rsexpr.h"
#include "rsiface/rsfiles.h"
#include "rsiface/rspeers.h"
#include "util/misc.h"
#include <iostream>
#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
*/
QVariant * variant = new QVariant((qulonglong)it->size);
item->setText(SR_SIZE_COL, QString(variant->toString()));
//QVariant * variant = new QVariant((qulonglong)it->size);
//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
// Qt::blue is very dark and hardly compatible with the black text on it.