Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}