| 349 | } |
| 350 | |
| 351 | void KeypadWidget::changeKeyState(KeyCode code, bool press) { |
| 352 | if (Key *key = mKeys[code.row()][code.col()]) { |
| 353 | bool wasSelected = key->isSelected(); |
| 354 | key->setPressed(press); |
| 355 | updateKey(key, wasSelected); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | void KeypadWidget::updateKey(Key *key, bool wasSelected) { |
| 360 | bool selected = key->isSelected(); |
nothing calls this directly
no test coverage detected