browserui/browser/FavouritesSrc/BrowserFavouritesListboxItemDrawer.cpp
changeset 10 57d5b8e231c4
parent 0 84ad3b177aa3
child 31 868cceedabd3
equal deleted inserted replaced
0:84ad3b177aa3 10:57d5b8e231c4
    53         {
    53         {
    54         aItemIndex = filter->FilteredItemIndex( aItemIndex );
    54         aItemIndex = filter->FilteredItemIndex( aItemIndex );
    55         }
    55         }
    56     TListItemProperties properties =
    56     TListItemProperties properties =
    57         CColumnListBoxItemDrawer::Properties( aItemIndex );
    57         CColumnListBoxItemDrawer::Properties( aItemIndex );
    58     if ( STATIC_CAST( CBrowserFavouritesListboxModel*, iModel ) ->
    58 
    59         Items()->At( aItemIndex )->IsFolder() )
    59     // SEARCH CUSTOM:  Updated below for Italics in bookmarks view    
    60         {
    60     // Selection of Folders is allowed, so no need to set it as Hidden.
    61         // If this is a folder, set "hidden selection" true.
    61     // if ( STATIC_CAST( CBrowserFavouritesListboxModel*, iModel ) ->
    62         properties.SetHiddenSelection( ETrue );
    62     //    Items()->At( aItemIndex )->IsFolder() )
    63         }
    63     //    {
       
    64     //    // If this is a folder, set "hidden selection" true.
       
    65     //    properties.SetHiddenSelection( ETrue );
       
    66     //    }
       
    67 
       
    68         
       
    69      //Better solution would be adding italics properties to CFavouritesItem, but it requires changes in FavouritesEngine API
       
    70      CFavouritesItem* fi = STATIC_CAST( CBrowserFavouritesListboxModel*, iModel ) ->
       
    71         Items()->At( aItemIndex );
       
    72     if ( fi->ContextId() == KFavouritesServiceContextId )
       
    73     	{
       
    74     	properties.SetItalics(ETrue);
       
    75     	}
    64     return properties;
    76     return properties;
    65     }
    77     }
    66 
    78 
    67 //  End of File
    79 //  End of File