summaryrefslogtreecommitdiff
path: root/src/editor.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-07-24 02:43:43 (GMT)
committerMarius Kintel <marius@kintel.net>2012-07-24 02:43:43 (GMT)
commitf1634d545dafecb745f32fa786d351e95b545280 (patch)
tree36342df7c93328f4db71988466e21c10b429a0ef /src/editor.h
parentec01e7f492cb750221464dc09d8d3e3d18607d18 (diff)
parentdcb8c201199d45c082992377bcabda92574abd83 (diff)
Merge branch 'master' of github.com:openscad/openscad
Conflicts: scripts/linux-build-dependencies.sh
Diffstat (limited to 'src/editor.h')
-rw-r--r--src/editor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editor.h b/src/editor.h
index 3088d20..bb338b0 100644
--- a/src/editor.h
+++ b/src/editor.h
@@ -1,6 +1,7 @@
#include <QObject>
#include <QString>
#include <QWidget>
+#include <QWheelEvent>
#ifdef _QCODE_EDIT_
#include <qeditor.h>
@@ -24,6 +25,8 @@ public slots:
#else
Editor(QWidget *parent) : QTextEdit(parent) { setAcceptRichText(false); }
public slots:
+ void zoomIn();
+ void zoomOut();
void setLineWrapping(bool on) { if(on) setWordWrapMode(QTextOption::WrapAnywhere); }
void setContentModified(bool y) { document()->setModified(y); }
bool isContentModified() { return document()->isModified(); }
@@ -31,5 +34,7 @@ public slots:
void unindentSelection();
void commentSelection();
void uncommentSelection();
+private:
+ void wheelEvent ( QWheelEvent * event );
#endif
};
contact: Jan Huwald // Impressum