| 167 | } |
| 168 | |
| 169 | void StateMachineView::finishCreateTransition(StateViewUI * destUI) |
| 170 | { |
| 171 | transitionCreationMode = false; |
| 172 | |
| 173 | if (transitionCreationSourceUI != nullptr && destUI != nullptr && destUI != transitionCreationSourceUI) |
| 174 | { |
| 175 | manager->stm.addItem(manager->stm.createItem(transitionCreationSourceUI->item, destUI->item)); |
| 176 | } |
| 177 | |
| 178 | for (auto &sui : itemsUI) |
| 179 | { |
| 180 | sui->setTransitionReceptionMode(StateViewUI::NONE); |
| 181 | } |
| 182 | |
| 183 | repaint(); |
| 184 | } |
| 185 | |
| 186 | void StateMachineView::cancelCreateTransition() |
| 187 | { |
nothing calls this directly
no test coverage detected