mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
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:
parent
d31bc2055f
commit
c35a48feb7
3 changed files with 21 additions and 8 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue