bool LazyCallerImpl::event(QEvent* e) { CallEvent* callEvent = dynamic_cast<CallEvent*>(e); if(callEvent){ if(isConservative){ callEvent->function(); self->isPending_ = false; } else { self->isPending_ = false; callEvent->function(); } return true; } return false; }
bool CallEventHandler::event(QEvent* e) { CallEvent* callEvent = dynamic_cast<CallEvent*>(e); if(callEvent){ callEvent->function(); if(callEvent->syncInfo){ callEvent->syncInfo->completed = true; } return true; } return false; }