diff options
Diffstat (limited to 'Keyboard.h')
-rw-r--r-- | Keyboard.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Keyboard.h b/Keyboard.h new file mode 100644 index 0000000..67f47f2 --- /dev/null +++ b/Keyboard.h @@ -0,0 +1,29 @@ +#ifndef __KEYBOARD_H__ +#define __KEYBOARD_H__ + +#include <QWidget> +#include <QRect> +#include <QLabel> +#include <QSignalMapper> + +class Keyboard : public QWidget +{ + Q_OBJECT + public: + explicit Keyboard(QRect r, QWidget *parent = Q_NULLPTR); + virtual ~Keyboard(); + + signals: + void specialKeyClicked(int key); + void keyClicked(const QString &text); + + private slots: + void buttonClicked(int key); + + private: + QRect rect; + QLabel background; + QSignalMapper *mapper; +}; + +#endif // __KEYBOARD_H__ |