From 3a1d986b53e6dde612669dcfbd26dffe225beba1 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 18 Nov 2008 12:15:21 +0000 Subject: [PATCH] * Added to Format Size git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@819 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/SearchDialog.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/SearchDialog.cpp b/retroshare-gui/src/gui/SearchDialog.cpp index 91de3d973..8ce769361 100644 --- a/retroshare-gui/src/gui/SearchDialog.cpp +++ b/retroshare-gui/src/gui/SearchDialog.cpp @@ -26,6 +26,7 @@ #include "rsiface/rsexpr.h" #include "rsiface/rsfiles.h" #include "rsiface/rspeers.h" +#include "util/misc.h" #include #include @@ -484,8 +485,10 @@ void SearchDialog::resultsToTree(std::string txt, std::list 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.