MCPcopy Create free account
hub / github.com/KDAB/GammaRay / repopulateGraph

Method repopulateGraph

plugins/statemachineviewer/statemachineviewerserver.cpp:72–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void StateMachineViewerServer::repopulateGraph()
73{
74 if (!m_stateModel->stateMachine())
75 return;
76
77 emit aboutToRepopulateGraph();
78
79 // just to be sure the client has the same setting than we do
80 updateStartStop();
81
82 if (m_filteredStates.isEmpty()) {
83 addState(m_stateModel->stateMachine()->rootState());
84 } else {
85 for (State state : std::as_const(m_filteredStates))
86 addState(state);
87 }
88 m_recursionGuard.clear();
89
90 emit graphRepopulated();
91}
92
93StateMachineDebugInterface *StateMachineViewerServer::selectedStateMachine() const
94{

Callers

nothing calls this directly

Calls 4

stateMachineMethod · 0.80
isEmptyMethod · 0.45
rootStateMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected