diff options
Diffstat (limited to 'Swift/QtUI/QtTextEdit.h')
-rw-r--r-- | Swift/QtUI/QtTextEdit.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Swift/QtUI/QtTextEdit.h b/Swift/QtUI/QtTextEdit.h new file mode 100644 index 0000000..0663377 --- /dev/null +++ b/Swift/QtUI/QtTextEdit.h @@ -0,0 +1,17 @@ +#pragma once +#include <QTextEdit> + +namespace Swift { + class QtTextEdit : public QTextEdit { + Q_OBJECT + public: + QtTextEdit(QWidget* parent = 0); + virtual QSize sizeHint() const; + signals: + void returnPressed(); + protected: + virtual void keyPressEvent(QKeyEvent* event); + private slots: + void handleTextChanged(); + }; +} |