summaryrefslogtreecommitdiff
path: root/src/editor.h
diff options
context:
space:
mode:
authorRicardo Markiewicz <gazer.arg@gmail.com>2013-11-29 04:40:28 (GMT)
committerRicardo Markiewicz <gazer.arg@gmail.com>2013-11-29 04:40:28 (GMT)
commitafe1fbcb53ff286b2f6efdb99efb6ed9947304f9 (patch)
tree0f95851e9aa974d156272631562820dd9a206a65 /src/editor.h
parent7b64944738d91eb2eef92f93f526cc29436adf15 (diff)
Move main code inside Editor class
Before open a new file now we cleanup the Editor, so the new file get the cursor on the first character.
Diffstat (limited to 'src/editor.h')
-rw-r--r--src/editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/editor.h b/src/editor.h
index 09484f5..8d092a9 100644
--- a/src/editor.h
+++ b/src/editor.h
@@ -2,6 +2,7 @@
#include <QString>
#include <QWidget>
#include <QWheelEvent>
+#include <QScrollBar>
#include <QTextEdit>
class Editor : public QTextEdit
@@ -9,6 +10,7 @@ class Editor : public QTextEdit
Q_OBJECT
public:
Editor(QWidget *parent) : QTextEdit(parent) { setAcceptRichText(false); }
+ void setPlainText(const QString &text);
public slots:
void zoomIn();
void zoomOut();
contact: Jan Huwald // Impressum