emailuis/uicomponents/src/fscontrolbutton.cpp
branchRCL_3
changeset 80 726fba06891a
parent 73 c8382f7b54ef
equal deleted inserted replaced
73:c8382f7b54ef 80:726fba06891a
   204 void CFsControlButton::SetIconL(
   204 void CFsControlButton::SetIconL(
   205     CAlfTexture& aIcon,
   205     CAlfTexture& aIcon,
   206     TFsControlButtonElem aWhich )
   206     TFsControlButtonElem aWhich )
   207     {
   207     {
   208     FUNC_LOG;
   208     FUNC_LOG;
   209     if ( iModel->Icon( aWhich ) != &aIcon ) // don't set the same icon twice
   209     iModel->SetIconL( aIcon, aWhich );
   210         {
   210     iVisualiser->UpdateElementL( aWhich );
   211         iModel->SetIconL( aIcon, aWhich );
       
   212         iVisualiser->UpdateElementL( aWhich );
       
   213         }
       
   214     }
   211     }
   215 
   212 
   216 
   213 
   217 // ---------------------------------------------------------------------------
   214 // ---------------------------------------------------------------------------
   218 // Sets width of the button.
   215 // Sets width of the button.
   630                 if ( aEvent.KeyEvent().iScanCode == EStdKeyDevice3 )
   627                 if ( aEvent.KeyEvent().iScanCode == EStdKeyDevice3 )
   631                     {
   628                     {
   632                     iParent.HandleButtonEvent(
   629                     iParent.HandleButtonEvent(
   633                         MFsControlButtonObserver::EEventButton,
   630                         MFsControlButtonObserver::EEventButton,
   634                         iModel->Id() );
   631                         iModel->Id() );
   635                     
   632                     result = ETrue;
   636                     // EStdKeyDevice3 (EKeyOK) cannot be consumed here.
       
   637                     result = EFalse;
       
   638 
   633 
   639                     if ( iTriggeredComponent )
   634                     if ( iTriggeredComponent )
   640                         {
   635                         {
   641                         iTriggeredComponent->OpenComponent();
   636                         iTriggeredComponent->OpenComponent();
   642                         }
   637                         }