mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
* Updated rsiface / rspeers.h
* Added correct menu items to the NetworkView. * Tweaked speed of NetworkView to conserve CPU. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1502 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
60349baf9d
commit
b756edd32e
7 changed files with 174 additions and 36 deletions
|
@ -39,6 +39,8 @@
|
|||
#include "arrow.h"
|
||||
#include "node.h"
|
||||
|
||||
#include "rsiface/rspeers.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QGraphicsScene>
|
||||
#include <QWheelEvent>
|
||||
|
@ -73,8 +75,6 @@ GraphWidget::GraphWidget(QWidget *parent)
|
|||
setWindowTitle(tr("Elastic Nodes"));
|
||||
|
||||
clearGraph();
|
||||
|
||||
clearGraph();
|
||||
}
|
||||
|
||||
bool GraphWidget::clearGraph()
|
||||
|
@ -88,7 +88,7 @@ bool GraphWidget::clearGraph()
|
|||
scene->setSceneRect(-200, -200, 1000, 1000);
|
||||
setScene(scene);
|
||||
|
||||
centerNode = new Node(this, 1, "OwnId", "You");
|
||||
centerNode = new Node(this, 1, rsPeers->getPGPOwnId(), "You");
|
||||
scene->addItem(centerNode);
|
||||
centerNode->setPos(0, 0);
|
||||
|
||||
|
@ -183,7 +183,7 @@ void GraphWidget::addArrow(std::string id1, std::string id2)
|
|||
void GraphWidget::itemMoved()
|
||||
{
|
||||
if (!timerId)
|
||||
timerId = startTimer(1000 / 10);
|
||||
timerId = startTimer(1000 / 1);
|
||||
}
|
||||
|
||||
void GraphWidget::keyPressEvent(QKeyEvent *event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue