! \brief Turn a key on or off * * \param key the key number to change * \param state the state to set the key to */
| 89 | * \param state the state to set the key to |
| 90 | */ |
| 91 | void Piano::setKeyState( int key, bool state ) |
| 92 | { |
| 93 | if( isValidKey( key ) ) |
| 94 | { |
| 95 | m_pressedKeys[key] = state; |
| 96 | |
| 97 | emit dataChanged(); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | |
| 102 |
no outgoing calls
no test coverage detected