summaryrefslogtreecommitdiff
path: root/src/editor.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-01-22 00:34:59 (GMT)
committerMarius Kintel <marius@kintel.net>2013-01-22 00:34:59 (GMT)
commit784b503f0dd57de2ac55836e07dd14e82800a593 (patch)
treee7e2c0dd9b5b253343a8946313080c0fce55d947 /src/editor.h
parent6ecf96b081626c512343fc1a8f7aa4a202ffaa86 (diff)
parent99a0b67cd4500b8f4410231b30fd67c0fa3aa4cb (diff)
Merge pull request #240 from openscad/colah_highlighter
Colah highlighter
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