mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
clean the qmake files
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2318 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4435ccf228
commit
94aa902a95
7 changed files with 17 additions and 59 deletions
|
@ -25,9 +25,7 @@
|
|||
|
||||
#include "rsiface/rsinit.h"
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
#include <gpgme.h>
|
||||
#endif
|
||||
#include <gpgme.h>
|
||||
|
||||
#include <QMenu>
|
||||
#include <QMouseEvent>
|
||||
|
@ -168,8 +166,6 @@ void NetworkView::insertPeers()
|
|||
continue;
|
||||
}
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
|
||||
/* *** */
|
||||
RsPeerDetails detail;
|
||||
if (!rsPeers->getPeerDetails(*it, detail))
|
||||
|
@ -205,37 +201,6 @@ void NetworkView::insertPeers()
|
|||
}
|
||||
ui.graphicsView->addNode(type, *it, detail.name);
|
||||
|
||||
|
||||
|
||||
#else
|
||||
/* *** */
|
||||
std::string name = rsPeers->getPeerName(*it);
|
||||
|
||||
if (rsPeers->isFriend(*it))
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_FRIEND;
|
||||
}
|
||||
else
|
||||
{
|
||||
RsPeerDetails detail;
|
||||
rsPeers->getPeerDetails(*it, detail);
|
||||
|
||||
if(detail.trustLvl > RS_TRUST_LVL_MARGINAL)
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_AUTHED;
|
||||
}
|
||||
else if (detail.trustLvl >= RS_TRUST_LVL_MARGINAL)
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_MARGINALAUTH;
|
||||
}
|
||||
else
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_FOF;
|
||||
}
|
||||
}
|
||||
ui.graphicsView->addNode(type, *it, name);
|
||||
#endif
|
||||
|
||||
std::cerr << "NetworkView::insertPeers() Added Friend: " << *it << std::endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue