fixed up GUI update issue

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7251 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-04-06 14:38:16 +00:00
parent bab24af091
commit 6d5d3da0fa
3 changed files with 6 additions and 4 deletions

View File

@ -43,10 +43,10 @@ class GlobalRouterStatistics: public RsAutoUpdatePage, public Ui::GlobalRouterSt
static QString getPeerName(const RsPeerId& peer_id) ; static QString getPeerName(const RsPeerId& peer_id) ;
void setGlobalRouter(const RsGRouter *grouter) ; void setGlobalRouter(const RsGRouter *grouter) ;
virtual void updateDisplay() ;
private: private:
virtual void updateDisplay() ;
GlobalRouterStatisticsWidget *_tst_CW ; GlobalRouterStatisticsWidget *_tst_CW ;
RsGRouter *_grouter ; RsGRouter *_grouter ;

View File

@ -30,6 +30,9 @@ void NetworkSimulatorGUI::updateSelectedNode(int node_id)
{ {
_turtle_router_statistics->setTurtleRouter( _viewer->network().node(node_id).turtle_service() ) ; _turtle_router_statistics->setTurtleRouter( _viewer->network().node(node_id).turtle_service() ) ;
_global_router_statistics->setGlobalRouter( _viewer->network().node(node_id).global_router_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) void NetworkSimulatorGUI::toggleNetworkTraffic(bool b)

View File

@ -41,9 +41,8 @@ class TurtleRouterStatistics: public RsAutoUpdatePage, public Ui::TurtleRouterSt
void setTurtleRouter(const RsTurtle *turtle) { _turtle = turtle ; } void setTurtleRouter(const RsTurtle *turtle) { _turtle = turtle ; }
private:
virtual void updateDisplay() ; virtual void updateDisplay() ;
private:
TurtleRouterStatisticsWidget *_tst_CW ; TurtleRouterStatisticsWidget *_tst_CW ;
const RsTurtle *_turtle ; const RsTurtle *_turtle ;