mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 18:42:20 -04:00
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:
parent
eb7a52a2a7
commit
9e1a368061
7 changed files with 78 additions and 18 deletions
|
@ -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() ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue