blob: 5688c71dd75011de5fac014e27e9ab5ca3ff4977 (
plain)
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
26
27
|
#ifndef __TEXTEDIT_H__
#define __TEXTEDIT_H__
#include <QPlainTextEdit>
class QtGui;
class QApplication;
class QWidget;
class TextEdit : public QPlainTextEdit
{
Q_OBJECT
public:
TextEdit(QWidget *parent=0);
private:
bool isKey(QString key);
public slots:
void quote();
protected:
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent* event);
};
#endif // TEXTEDIT
|