void TGroup::handleEvent( TEvent& event ) { TView::handleEvent( event ); handleStruct hs( event, *this ); if( (event.what & focusedEvents) != 0 ) { phase = phPreProcess; forEach( doHandleEvent, &hs ); phase = phFocused; doHandleEvent( current, &hs ); phase = phPostProcess; forEach( doHandleEvent, &hs ); } else { phase = phFocused; if( (event.what & positionalEvents) != 0 ) { doHandleEvent( firstThat( hasMouse, &event ), &hs ); } else forEach( doHandleEvent, &hs ); } }
void TGroup::handleEvent(TEvent &event) { TView::handleEvent(event); handleStruct hs(event, *this); if ((event.what & focusedEvents) != 0) { phase = phPreProcess; forEach(doHandleEvent, &hs); phase = phFocused; doHandleEvent(current, &hs); phase = phPostProcess; forEach(doHandleEvent, &hs); } else { phase = phFocused; if ((event.what & positionalEvents) != 0) { // get pointer to topmost view holding mouse TView *p = firstThat(hasMouse, &event); if (p) // we have a view; send event to it doHandleEvent(p, &hs); } else forEach(doHandleEvent, &hs); } }
void CxeCameraDeviceControlSymbian::HandleEvent(const TECAMEvent &aEvent) { doHandleEvent( aEvent ); emit cameraEvent( aEvent.iEventType.iUid, aEvent.iErrorCode ); }