show fingerprint in ConfCertDialog, and splitted the string with spaces. Removed the use of the ambiguous peer id for both pgp and locations ids

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6900 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-11-09 22:52:26 +00:00
parent d2ddf9c4c4
commit fc56b95d3f
5 changed files with 63 additions and 4 deletions

View file

@ -47,6 +47,20 @@ QString misc::friendlyUnit(float val)
return QString(QByteArray::number(val, 'f', 1)) + tr(" TB", "terabytes (1024 gigabytes)");
}
QString misc::fingerPrintStyleSplit(const QString& in)
{
QString rest = in ;
QString res ;
if(in.isNull())
return in ;
for(int i=0;i<in.length();i+=4)
res += rest.mid(i,4)+' ' ;
return res.left(res.length()-1) ;
}
bool misc::isPreviewable(QString extension)
{
extension = extension.toUpper();