uifw/AvKon/aknhlist/src/akntreelist.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 0 2f259fa3e83a
child 15 08e69e956a8c
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
   389         }
   389         }
   390     else if ( aDrawNow )
   390     else if ( aDrawNow )
   391         {
   391         {
   392         Window().Invalidate( View().Rect() );
   392         Window().Invalidate( View().Rect() );
   393         }
   393         }
       
   394     
       
   395     // Update the marking of upper level node
       
   396     CAknTreeItem* item = Tree().Item( aItem );
       
   397     if ( item && item->Parent() && item->Parent()->IsNode() )
       
   398         {
       
   399         CAknTreeNode* node = item->Parent()->Node();
       
   400         TBool wasMarked = node->IsMarked();
       
   401         if ( node && node->IsMarkable() )
       
   402             {
       
   403             if ( node->AllChildrenMarked() )
       
   404                 {
       
   405                 node->SetMarked( ETrue );
       
   406                 }            
       
   407             else
       
   408                 {
       
   409                 node->SetMarked( EFalse );
       
   410                 }
       
   411             }
       
   412         if ( wasMarked != node->IsMarked() )
       
   413             {
       
   414             Window().Invalidate( View().Rect() );
       
   415             }
       
   416         }
   394     }
   417     }
   395 
   418 
   396 
   419 
   397 // ---------------------------------------------------------------------------
   420 // ---------------------------------------------------------------------------
   398 // Enables/disables marking for specified list item.
   421 // Enables/disables marking for specified list item.