summaryrefslogtreecommitdiff
path: root/src/editor.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-09 02:07:28 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-09 02:07:28 (GMT)
commita82651de310e4aedf7a634581e6369f528fb649c (patch)
treeadd0d1bd3b88b235e46318c23693b21baaa6565b /src/editor.h
parent7defd5d5a978e647d6e6b61e4190f3d9b60c0cc7 (diff)
remove QCodeEditor inspired by Giles Bathgates Jan 7 2012 email to list
Diffstat (limited to 'src/editor.h')
-rw-r--r--src/editor.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/editor.h b/src/editor.h
index bb338b0..09484f5 100644
--- a/src/editor.h
+++ b/src/editor.h
@@ -3,26 +3,11 @@
#include <QWidget>
#include <QWheelEvent>
-#ifdef _QCODE_EDIT_
-#include <qeditor.h>
-class Editor : public QEditor
-#else
#include <QTextEdit>
class Editor : public QTextEdit
-#endif
{
Q_OBJECT
public:
-#ifdef _QCODE_EDIT_
- Editor(QWidget *parent) : QEditor(parent) {}
- QString toPlainText() const { return text(); }
- void setPlainText(const QString& text) { setText(text); }
-public slots:
- //void zoomIn() { zoom(1); }
- void zoomIn(int n = 1) { zoom(n); }
- //void zoomOut() { zoom(-1); }
- void zoomOut(int n = 1) { zoom(-n); }
-#else
Editor(QWidget *parent) : QTextEdit(parent) { setAcceptRichText(false); }
public slots:
void zoomIn();
@@ -36,5 +21,4 @@ public slots:
void uncommentSelection();
private:
void wheelEvent ( QWheelEvent * event );
-#endif
};
contact: Jan Huwald // Impressum