added search and highlighting to network graph (patch from Chozabu)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8368 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-06-04 13:36:34 +00:00
parent eb7a52a2a7
commit 9e1a368061
7 changed files with 78 additions and 18 deletions

View file

@ -58,6 +58,7 @@ NetworkView::NetworkView(QWidget *parent)
connect( ui.maxFriendLevelSB, SIGNAL(valueChanged(int)), this, SLOT(setMaxFriendLevel(int)));
connect( ui.edgeLengthSB, SIGNAL(valueChanged(int)), this, SLOT(setEdgeLength(int)));
connect( ui.freezeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setFreezeState(bool)));
connect( ui.nameBox, SIGNAL(textChanged(QString)), this, SLOT(setNameSearch(QString)));
_should_update = true ;
}
@ -72,6 +73,10 @@ void NetworkView::setEdgeLength(int l)
{
ui.graphicsView->setEdgeLength(l);
}
void NetworkView::setNameSearch(QString s)
{
ui.graphicsView->setNameSearch(s);
}
void NetworkView::setMaxFriendLevel(int m)
{
ui.graphicsView->snapshotNodesPositions() ;