| 18 | const QRect KeypadWidget::sBaseRect{{}, QSize{162, 238}}; |
| 19 | |
| 20 | void KeypadWidget::addKey(Key *key) { |
| 21 | const KeyCode code = key->keycode(); |
| 22 | unsigned char row = code.row(); |
| 23 | unsigned char col = code.col(); |
| 24 | delete mKeys[row][col]; |
| 25 | mKeys[row][col] = key; |
| 26 | } |
| 27 | |
| 28 | unsigned KeypadWidget::getCurrColor() { |
| 29 | return color; |