void ConsoleRequestHandler::stopAll() { _stopped(); }
void EventQueue::waitForStopped() { QEventLoop wait; wait.connect(this, SIGNAL(_stopped()), SLOT(quit())); emit this->_stop(); wait.exec(); }