| 17 | bool operator==(KeyCode other) const { return code() == other.code(); } |
| 18 | bool operator!=(KeyCode other) const { return !(*this == other); } |
| 19 | friend uint qHash(KeyCode code, uint seed = 0) { |
| 20 | return qHash(code.code(), seed); |
| 21 | } |
| 22 | |
| 23 | private: |
| 24 | unsigned char mCode; |