logsui/logscntfinder/src/logspredictive12keytranslator.cpp
changeset 16 c5af8598d22c
parent 4 e52d42f9500c
child 17 90fe74753f71
equal deleted inserted replaced
14:f27aebe284bb 16:c5af8598d22c
   102 // -----------------------------------------------------------------------------
   102 // -----------------------------------------------------------------------------
   103 //
   103 //
   104 const QChar LogsPredictive12KeyTranslator::translateChar( 
   104 const QChar LogsPredictive12KeyTranslator::translateChar( 
   105         const QChar character ) const
   105         const QChar character ) const
   106 {
   106 {
   107     const HbMappedKey* mappedKey = 
   107     const HbMappedKey* mappedKey = 0;
   108             mKeyMap->keyForCharacter( HbKeyboardVirtual12Key, character );
   108     if ( mKeyMap ) {
       
   109         mappedKey = mKeyMap->keyForCharacter( HbKeyboardVirtual12Key, character );
       
   110     }
   109     return mappedKey ? mappedKey->keycode : QChar();
   111     return mappedKey ? mappedKey->keycode : QChar();
   110 }
   112 }
   111 
   113 
   112 
   114 
   113 
   115