idlehomescreen/xmluirendering/uiengine/src/xnfocuscontrol.cpp
branchRCL_3
changeset 23 7be2816dbabd
parent 12 9674c1a575e9
equal deleted inserted replaced
19:79311d856354 23:7be2816dbabd
    23 // User includes
    23 // User includes
    24 #include "xncontroladapter.h"
    24 #include "xncontroladapter.h"
    25 #include "xnproperty.h"
    25 #include "xnproperty.h"
    26 #include "xnappuiadapter.h"
    26 #include "xnappuiadapter.h"
    27 #include "xnuiengine.h"
    27 #include "xnuiengine.h"
       
    28 #include "xneditmode.h"
    28 #include "xnnode.h"
    29 #include "xnnode.h"
    29 #include "xninactivitymonitor.h"
    30 #include "xninactivitymonitor.h"
    30 
    31 
    31 #include "xnfocuscontrol.h"
    32 #include "xnfocuscontrol.h"
    32 
    33 
   163 // 
   164 // 
   164 // -----------------------------------------------------------------------------
   165 // -----------------------------------------------------------------------------
   165 //
   166 //
   166 void CXnFocusControl::Draw( const TRect& aRect, CWindowGc& aGc ) const
   167 void CXnFocusControl::Draw( const TRect& aRect, CWindowGc& aGc ) const
   167     {
   168     {
       
   169     TInt state( iAppUiAdapter.UiEngine().EditMode()->EditState() );
       
   170             
       
   171     // Don't draw focus appearance when shooting dragging widget in edit mode
       
   172     if ( state == CXnEditMode::EShootContent )
       
   173         {
       
   174         return;
       
   175         }
       
   176     
   168     if ( IsVisible() || iRefused ) 
   177     if ( IsVisible() || iRefused ) 
   169         {                                       
   178         {                                       
   170         CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() );
   179         CXnNode* node( iAppUiAdapter.UiEngine().FocusedNode() );
   171         
   180         
   172         if ( node )
   181         if ( node )