Toggle play/pause for the simulation
| 245 | |
| 246 | // Toggle play/pause for the simulation |
| 247 | inline void TestbedApplication::togglePlayPauseSimulation() { |
| 248 | |
| 249 | if (mTimer.isRunning()) { |
| 250 | mTimer.stop(); |
| 251 | } |
| 252 | else { |
| 253 | mTimer.start(); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | // Play the simulation |
| 258 | inline void TestbedApplication::playSimulation() { |