Pump the event loop for `ms` milliseconds to let timers and queued connections fire.
| 47 | // Pump the event loop for `ms` milliseconds to let timers and queued |
| 48 | // connections fire. |
| 49 | void pumpEventLoop(int ms) { |
| 50 | QEventLoop loop; |
| 51 | QTimer::singleShot(ms, &loop, &QEventLoop::quit); |
| 52 | loop.exec(); |
| 53 | } |
| 54 | |
| 55 | PJ::DialogHandle makeMockHandle() { |
| 56 | return PJ::DialogHandle(PJ_get_dialog_vtable()); |