Added freeze option in NetworkView (Modified patch from K. Eisentraut)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6879 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-10-27 23:07:47 +00:00
parent e04283f3af
commit 5304865fc4
5 changed files with 41 additions and 1 deletions

View file

@ -57,6 +57,7 @@ NetworkView::NetworkView(QWidget *parent)
/* Hide Settings frame */
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)));
_should_update = true ;
}
@ -96,6 +97,15 @@ void NetworkView::clear()
update() ;
}
void NetworkView::setFreezeState(bool freeze)
{
#ifdef DEBUG_NETWORKVIEW
std::cerr << " NetworkView::setFreezeState(" << freeze << ")" << std::endl;
#endif
ui.graphicsView->setFreeze(freeze);
}
class NodeInfo
{
public: