mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-01 04:46:47 -05:00
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:
parent
d2ddf9c4c4
commit
fc56b95d3f
5 changed files with 63 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue