blob: 0663377a8eb88f7c8a3ec293d16e5089be8940d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
};
}
|