| 70 | } |
| 71 | |
| 72 | void 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 | |
| 93 | StateMachineDebugInterface *StateMachineViewerServer::selectedStateMachine() const |
| 94 | { |
nothing calls this directly
no test coverage detected