equal
deleted
inserted
replaced
35 { |
35 { |
36 if (event->type() == QSymbianEvent::WindowServerEvent){ |
36 if (event->type() == QSymbianEvent::WindowServerEvent){ |
37 const TWsEvent *wsevent = event->windowServerEvent(); |
37 const TWsEvent *wsevent = event->windowServerEvent(); |
38 if ( wsevent->Type() == EEventWindowVisibilityChanged ){ |
38 if ( wsevent->Type() == EEventWindowVisibilityChanged ){ |
39 TUint visible = wsevent->VisibilityChanged()->iFlags; |
39 TUint visible = wsevent->VisibilityChanged()->iFlags; |
40 if ( visible & TWsVisibilityChangedEvent::EFullyVisible ){ |
40 if ( visible & TWsVisibilityChangedEvent::EPartiallyVisible ){ |
41 emit focusGained(); |
41 emit focusGained(); |
42 }else if (visible & TWsVisibilityChangedEvent::ENotVisible){ |
42 }else if (visible & TWsVisibilityChangedEvent::ENotVisible){ |
43 emit focusLost(); |
43 emit focusLost(); |
44 } |
44 } |
45 } |
45 } |