equal
deleted
inserted
replaced
33 #ifdef Q_OS_SYMBIAN |
33 #ifdef Q_OS_SYMBIAN |
34 bool PhoneApplication::symbianEventFilter(const QSymbianEvent *event) |
34 bool PhoneApplication::symbianEventFilter(const QSymbianEvent *event) |
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 switch( wsevent->Type()){ |
38 if ( wsevent->Type() == EEventWindowVisibilityChanged ){ |
39 case EEventFocusGained: |
39 TUint visible = wsevent->VisibilityChanged()->iFlags; |
|
40 if ( visible & TWsVisibilityChangedEvent::EFullyVisible ){ |
40 emit focusGained(); |
41 emit focusGained(); |
41 break; |
42 }else if (visible & TWsVisibilityChangedEvent::ENotVisible){ |
42 case EEventFocusLost: |
|
43 emit focusLost(); |
43 emit focusLost(); |
44 break; |
44 } |
45 default: |
|
46 break; |
|
47 } |
45 } |
48 } |
46 } |
49 return HbApplication::symbianEventFilter(event); |
47 return HbApplication::symbianEventFilter(event); |
50 } |
48 } |
51 #endif |
49 #endif |