1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#ifndef CHATINPUTTEXT_H #define CHATINPUTTEXT_H #include <QTextEdit> #include <QKeyEvent> class chatInputText : public QTextEdit { Q_OBJECT public: explicit chatInputText(QWidget *parent = 0); signals: protected: void keyPressEvent(QKeyEvent *ke); signals: void msgReady(); public slots: }; #endif // CHATINPUTTEXT_H