idlehomescreen/xmluirendering/uiengine/src/xnfocuscontrol.cpp
changeset 2 08c6ee43b396
parent 0 f72a12da539e
child 11 ff572dfe6d86
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
   180 void CXnFocusControl::Draw( const TRect& aRect, CWindowGc& aGc ) const
   180 void CXnFocusControl::Draw( const TRect& aRect, CWindowGc& aGc ) const
   181     {
   181     {
   182     if ( IsVisible() || iRefused ) 
   182     if ( IsVisible() || iRefused ) 
   183         {                                       
   183         {                                       
   184         CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() );
   184         CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() );
   185 
   185         
   186         if ( node )
   186         if ( node )
   187             {
   187             {            
       
   188             CXnProperty* prop( NULL );
       
   189             
       
   190             TRAP_IGNORE( prop = node->GetPropertyL( 
       
   191                 XnPropertyNames::common::KFocusAppearance ) );
       
   192                                             
       
   193             if ( prop && prop->StringValue() == XnPropertyNames::KNone )
       
   194                 {
       
   195                 // Current element refuses to draw focus appearance
       
   196                 return;
       
   197                 }
       
   198             
   188             TRect innerRect( aRect );            
   199             TRect innerRect( aRect );            
   189             
   200             
   190             innerRect.Shrink( 
   201             innerRect.Shrink( 
   191                 KSkinGfxInnerRectShrink, KSkinGfxInnerRectShrink );
   202                 KSkinGfxInnerRectShrink, KSkinGfxInnerRectShrink );
   192             
   203