Update to support both Qt 4 and Qt 5
[apps/thermostat-demo.git] / qkeyboardlineedit.h
1 #ifndef QKEYBOARDLINEEDIT_H
2 #define QKEYBOARDLINEEDIT_H
4 #include <qglobal.h>
5 #include <QLineEdit>
7 #if QT_VERSION >= 0x050000
9 #include <QApplication>
11 #endif
13 class Keyboard;
15 class QKeyboardLineEdit : public QLineEdit
16 {
17     Q_OBJECT
18 public:
19     explicit QKeyboardLineEdit(QWidget *parent = 0);
20     virtual ~QKeyboardLineEdit();
21     
22 signals:
23     
24 public slots:
25     void mousePressEvent(QMouseEvent *);
26     void keyboardClosed();
29 private:
30     Keyboard* m_keyboardWidget;
31     bool m_isBeingEdited;
33     
34 };
36 #endif // QKEYBOARDLINEEDIT_H