From 6d5d3da0fa7f4b4025bbb53e38c78c6391bb128c Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 6 Apr 2014 14:38:16 +0000 Subject: [PATCH] fixed up GUI update issue git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7251 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/tests/network_simulator/gui/GlobalRouterStatistics.h | 2 +- .../src/tests/network_simulator/gui/NetworkSimulatorGUI.cpp | 3 +++ .../src/tests/network_simulator/gui/TurtleRouterStatistics.h | 5 ++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libretroshare/src/tests/network_simulator/gui/GlobalRouterStatistics.h b/libretroshare/src/tests/network_simulator/gui/GlobalRouterStatistics.h index 9c54aa4d6..b3bc067de 100644 --- a/libretroshare/src/tests/network_simulator/gui/GlobalRouterStatistics.h +++ b/libretroshare/src/tests/network_simulator/gui/GlobalRouterStatistics.h @@ -43,10 +43,10 @@ class GlobalRouterStatistics: public RsAutoUpdatePage, public Ui::GlobalRouterSt static QString getPeerName(const RsPeerId& peer_id) ; void setGlobalRouter(const RsGRouter *grouter) ; + virtual void updateDisplay() ; private: - virtual void updateDisplay() ; GlobalRouterStatisticsWidget *_tst_CW ; RsGRouter *_grouter ; diff --git a/libretroshare/src/tests/network_simulator/gui/NetworkSimulatorGUI.cpp b/libretroshare/src/tests/network_simulator/gui/NetworkSimulatorGUI.cpp index 5016ec57e..c53f061b7 100644 --- a/libretroshare/src/tests/network_simulator/gui/NetworkSimulatorGUI.cpp +++ b/libretroshare/src/tests/network_simulator/gui/NetworkSimulatorGUI.cpp @@ -30,6 +30,9 @@ void NetworkSimulatorGUI::updateSelectedNode(int node_id) { _turtle_router_statistics->setTurtleRouter( _viewer->network().node(node_id).turtle_service() ) ; _global_router_statistics->setGlobalRouter( _viewer->network().node(node_id).global_router_service() ) ; + + _turtle_router_statistics->updateDisplay() ; + _global_router_statistics->updateDisplay() ; } void NetworkSimulatorGUI::toggleNetworkTraffic(bool b) diff --git a/libretroshare/src/tests/network_simulator/gui/TurtleRouterStatistics.h b/libretroshare/src/tests/network_simulator/gui/TurtleRouterStatistics.h index ebff4bf69..d81438cd5 100644 --- a/libretroshare/src/tests/network_simulator/gui/TurtleRouterStatistics.h +++ b/libretroshare/src/tests/network_simulator/gui/TurtleRouterStatistics.h @@ -41,9 +41,8 @@ class TurtleRouterStatistics: public RsAutoUpdatePage, public Ui::TurtleRouterSt void setTurtleRouter(const RsTurtle *turtle) { _turtle = turtle ; } - private: - - virtual void updateDisplay() ; + virtual void updateDisplay() ; + private: TurtleRouterStatisticsWidget *_tst_CW ; const RsTurtle *_turtle ;