mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Added for Private Chat Attachments to display for each rs link with file size
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3346 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0abfbbb911
commit
bbd3902bbe
3 changed files with 13 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <QObject>
|
||||
|
||||
#include "RetroShareLink.h"
|
||||
#include "util/misc.h"
|
||||
|
||||
#include <retroshare/rsfiles.h>
|
||||
#include <retroshare/rspeers.h>
|
||||
|
@ -187,6 +188,11 @@ QString RetroShareLink::toHtmlFull() const
|
|||
return QString("<a href='") + toString() + "'>" + toString() + "</a>" ;
|
||||
}
|
||||
|
||||
QString RetroShareLink::toHtmlSize() const
|
||||
{
|
||||
return QString("<a href='") + toString() + "'>" + name() +"</a>" + " " + "<HTML><font color=\"blue\">" + "(" + misc::friendlyUnit(_size) + ")" +"</font></HTML>";
|
||||
}
|
||||
|
||||
bool RetroShareLink::checkName(const QString& name)
|
||||
{
|
||||
if(name == "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue