| 1575 | } |
| 1576 | |
| 1577 | void Editor::play(bool playOnce) |
| 1578 | { |
| 1579 | ASSERT(m_state); |
| 1580 | if (!m_state) |
| 1581 | return; |
| 1582 | |
| 1583 | if (!dynamic_cast<PlayState*>(m_state.get())) |
| 1584 | setState(EditorStatePtr(new PlayState(playOnce))); |
| 1585 | } |
| 1586 | |
| 1587 | void Editor::stop() |
| 1588 | { |
no test coverage detected