equal
deleted
inserted
replaced
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 } |