phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclsearchresultlistbox.cpp
branchRCL_3
changeset 23 5586b4d2ec3e
parent 21 b3431bff8c19
child 64 c1e8ba0c2b16
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
   245     if ( iColorsSet & EHighlighColorSet )
   245     if ( iColorsSet & EHighlighColorSet )
   246         {
   246         {
   247         ptr->iHighlightedTextColor = iHighlightColor;
   247         ptr->iHighlightedTextColor = iHighlightColor;
   248         }        
   248         }        
   249 
   249 
   250     // Disable AVKON skinning so that our own color definitions apply
       
   251     TBool skinEnabled = AknsUtils::AvkonSkinEnabled();
       
   252     // Safe to ignore error
       
   253     TRAP_IGNORE( AknsUtils::SetAvkonSkinEnabledL( EFalse ) );
       
   254     CColumnListBoxItemDrawer::DrawItemText(
   250     CColumnListBoxItemDrawer::DrawItemText(
   255         aItemIndex,
   251         aItemIndex,
   256         aItemTextRect,
   252         aItemTextRect,
   257         aItemIsCurrent,
   253         aItemIsCurrent,
   258         aViewIsEmphasized,
   254         aViewIsEmphasized,
   259         aItemIsSelected );
   255         aItemIsSelected );
   260     // Safe to ignore error
       
   261     TRAP_IGNORE( AknsUtils::SetAvkonSkinEnabledL( skinEnabled ) );
       
   262     }
   256     }
   263 
   257 
   264 
   258 
   265 
   259 
   266 //This strange old override below (CPbkxRclSearchResultListView) causes on hardware empty 
   260 //This strange old override below (CPbkxRclSearchResultListView) causes on hardware empty 
   268 //To fix draw this override is not used (however is part of pbk2rclengine api
   262 //To fix draw this override is not used (however is part of pbk2rclengine api
   269 //and therefore not removed completely)
   263 //and therefore not removed completely)
   270 ////////////////////////////////////////////////////////////////////////////
   264 ////////////////////////////////////////////////////////////////////////////
   271 // CPbkxRclSearchResultListView
   265 // CPbkxRclSearchResultListView
   272 ////////////////////////////////////////////////////////////////////////////
   266 ////////////////////////////////////////////////////////////////////////////
   273 
       
   274 // ---------------------------------------------------------------------------
   267 // ---------------------------------------------------------------------------
   275 // CPbkxRclSearchResultListView::DrawEmptyList
   268 // CPbkxRclSearchResultListView::DrawEmptyList
   276 // ---------------------------------------------------------------------------
   269 // ---------------------------------------------------------------------------
   277 //
   270 //
   278 void CPbkxRclSearchResultListView::DrawEmptyList(const TRect &aClientRect) const
   271 void CPbkxRclSearchResultListView::DrawEmptyList(const TRect &aClientRect) const
   279     {
   272     {
   280     // Disable AVKON skinning so that our own color definitions apply
   273 //    // Disable AVKON skinning so that our own color definitions apply
   281     TBool skinEnabled = AknsUtils::AvkonSkinEnabled();
   274 //    TBool skinEnabled = AknsUtils::AvkonSkinEnabled();
   282     // Safe to ignore error
   275 //    // Safe to ignore error
   283     TRAP_IGNORE( AknsUtils::SetAvkonSkinEnabledL( EFalse ) );
   276 //    TRAP_IGNORE( AknsUtils::SetAvkonSkinEnabledL( EFalse ) );
   284     CAknColumnListBoxView::DrawEmptyList( aClientRect );
   277 //    CAknColumnListBoxView::DrawEmptyList( aClientRect );
   285     // Safe to ignore error
   278 //    // Safe to ignore error
   286     TRAP_IGNORE( AknsUtils::SetAvkonSkinEnabledL( skinEnabled ) );
   279 //    TRAP_IGNORE( AknsUtils::SetAvkonSkinEnabledL( skinEnabled ) );
   287     }
   280     }
   288 
   281