Teaked the TrustView and NetworkView so that they only update when visible. Doing so, the CPU overload is only present when strictly needed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1571 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-08-29 11:25:06 +00:00
parent d31bc2055f
commit c35a48feb7
3 changed files with 21 additions and 8 deletions

View file

@ -221,7 +221,8 @@ void GraphWidget::keyPressEvent(QKeyEvent *event)
void GraphWidget::timerEvent(QTimerEvent *event)
{
Q_UNUSED(event);
if(!isVisible())
return;
QList<Node *> nodes;
foreach (QGraphicsItem *item, scene()->items()) {