src/hbinput/inputwidgets/hbinputsctkeyboard.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 6 c3690ec91ef8
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
   287         for (int i = 0; i < buttons.count(); ++i) {
   287         for (int i = 0; i < buttons.count(); ++i) {
   288             if (keyCode(i) == HbInputButton::ButtonKeyCodeCharacter) {
   288             if (keyCode(i) == HbInputButton::ButtonKeyCodeCharacter) {
   289                 HbInputButton *item = buttons.at(i);
   289                 HbInputButton *item = buttons.at(i);
   290 
   290 
   291                 const HbKeyboardMap *keyboardMap = mKeymap->keyboard(q->keyboardType());
   291                 const HbKeyboardMap *keyboardMap = mKeymap->keyboard(q->keyboardType());
   292                 if (keyboardMap && key < keyboardMap->keys.count()) {
   292                 if (keyboardMap && key < keyboardMap->keys.count() && keyboardMap->keys.at(key)->characters(HbModifierNone)!= QString("")) {
   293                     QString keydata = keyboardMap->keys.at(key)->characters(HbModifierNone);
   293                     QString keydata = keyboardMap->keys.at(key)->characters(HbModifierNone);
   294                     item->setText(keydata.at(0), HbInputButton::ButtonTextIndexPrimary);
   294                     item->setText(keydata.at(0), HbInputButton::ButtonTextIndexPrimary);
   295                 } else {
   295                 } else {
   296                     item->setText("", HbInputButton::ButtonTextIndexPrimary);
   296                     item->setText("", HbInputButton::ButtonTextIndexPrimary);
   297                 }
   297                 }