aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-12-22 23:06:04 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-12-22 23:06:04 +0000
commit1cf3eb2174458a0b844287b9c265fc4e92464177 (patch)
tree9b837881d1e747b3964df89e9f4be39c949191d5 /textedit.h
parentthere may be more than on signature (diff)
downloadgpg4usb-1cf3eb2174458a0b844287b9c265fc4e92464177.tar.gz
gpg4usb-1cf3eb2174458a0b844287b9c265fc4e92464177.zip
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
Diffstat (limited to 'textedit.h')
-rw-r--r--textedit.h22
1 files changed, 22 insertions, 0 deletions
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 <QPlainTextEdit>
+
+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