mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
suppressed debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3832 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
61e7cf234c
commit
8f9a54544d
@ -180,8 +180,9 @@ GraphWidget::NodeId GraphWidget::addNode(const std::string& node_short_string,co
|
||||
|
||||
node->setPos(x1+f1*(x2-x1),y1+f2*(y2-y1));
|
||||
}
|
||||
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cerr << "Added node " << _nodes.size()-1 << std::endl ;
|
||||
#endif
|
||||
return _nodes.size()-1 ;
|
||||
}
|
||||
void GraphWidget::snapshotNodesPositions()
|
||||
@ -203,7 +204,9 @@ GraphWidget::EdgeId GraphWidget::addEdge(NodeId n1,NodeId n2)
|
||||
Edge *edge = new Edge(_nodes[n1],_nodes[n2]);
|
||||
scene()->addItem(edge);
|
||||
_edges[ed] = edge ;
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cerr << "Added edge " << n1 << " - " << n2 << std::endl ;
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0 ;
|
||||
@ -213,7 +216,9 @@ void GraphWidget::itemMoved()
|
||||
{
|
||||
if (!timerId)
|
||||
{
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cout << "starting timer" << std::endl;
|
||||
#endif
|
||||
timerId = startTimer(1000 / 25);
|
||||
}
|
||||
}
|
||||
@ -348,7 +353,9 @@ void GraphWidget::timerEvent(QTimerEvent *event)
|
||||
|
||||
if (!itemsMoved) {
|
||||
killTimer(timerId);
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cerr << "Killing timr" << std::endl ;
|
||||
#endif
|
||||
timerId = 0;
|
||||
}
|
||||
}
|
||||
@ -359,7 +366,9 @@ void GraphWidget::setEdgeLength(uint32_t l)
|
||||
|
||||
if(!timerId)
|
||||
{
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cout << "starting timer" << std::endl;
|
||||
#endif
|
||||
timerId = startTimer(1000 / 25);
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,9 @@
|
||||
Node::Node(const std::string& node_string,GraphWidget::NodeType type,GraphWidget::AuthType auth,GraphWidget *graphWidget,const std::string& ssl_id,const std::string& gpg_id)
|
||||
: graph(graphWidget),_desc_string(node_string),_type(type),_auth(auth),_ssl_id(ssl_id),_gpg_id(gpg_id)
|
||||
{
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cerr << "Created node type " << type << ", string=" << node_string << std::endl ;
|
||||
#endif
|
||||
setFlag(ItemIsMovable);
|
||||
#if QT_VERSION >= 0x040600
|
||||
setFlag(ItemSendsGeometryChanges);
|
||||
@ -296,7 +298,9 @@ void Node::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
|
||||
void Node::peerDetails()
|
||||
{
|
||||
#ifdef DEBUG_ELASTIC
|
||||
std::cerr << "Calling peer details" << std::endl;
|
||||
#endif
|
||||
ConfCertDialog::showIt(_gpg_id, ConfCertDialog::PageDetails);
|
||||
}
|
||||
void Node::makeFriend()
|
||||
|
Loading…
Reference in New Issue
Block a user