From 1cf3eb2174458a0b844287b9c265fc4e92464177 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 22 Dec 2010 23:06:04 +0000 Subject: added comment action (to insert > at every line) in edit menu, added drag and drop handling and exported textedit to its own class git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@407 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 textedit.h (limited to 'textedit.h') diff --git a/textedit.h b/textedit.h new file mode 100644 index 0000000..fe0b395 --- /dev/null +++ b/textedit.h @@ -0,0 +1,22 @@ +#ifndef __TEXTEDIT_H__ +#define __TEXTEDIT_H__ + +#include + +class QtGui; +class QApplication; +class QWidget; + +class TextEdit : public QPlainTextEdit +{ + Q_OBJECT +public: + TextEdit(QWidget *parent=0); +public slots: + void comment(); +protected: + void dragEnterEvent(QDragEnterEvent *event); + void dropEvent(QDropEvent* event); + +}; +#endif // TEXTEDIT -- cgit v1.2.3