summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/codeeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/codeeditor.h')
-rw-r--r--utils/themeeditor/gui/codeeditor.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/codeeditor.h b/utils/themeeditor/gui/codeeditor.h
index 528dfb2c12..a25c5664f0 100644
--- a/utils/themeeditor/gui/codeeditor.h
+++ b/utils/themeeditor/gui/codeeditor.h
@@ -38,6 +38,9 @@
38 38
39#include <QPlainTextEdit> 39#include <QPlainTextEdit>
40#include <QObject> 40#include <QObject>
41#include <QSettings>
42
43#include "syntaxcompleter.h"
41 44
42QT_BEGIN_NAMESPACE 45QT_BEGIN_NAMESPACE
43class QPaintEvent; 46class QPaintEvent;
@@ -68,15 +71,22 @@ public:
68 71
69protected: 72protected:
70 void resizeEvent(QResizeEvent *event); 73 void resizeEvent(QResizeEvent *event);
74 void keyPressEvent(QKeyEvent *event);
71 75
72private slots: 76private slots:
73 void updateLineNumberAreaWidth(int newBlockCount); 77 void updateLineNumberAreaWidth(int newBlockCount);
74 void updateLineNumberArea(const QRect &, int); 78 void updateLineNumberArea(const QRect &, int);
79 void cursorMoved();
75 80
76private: 81private:
77 QWidget *lineNumberArea; 82 QWidget *lineNumberArea;
78 QList<int> errors; 83 QList<int> errors;
79 QColor errorColor; 84 QColor errorColor;
85 SyntaxCompleter completer;
86 QSettings settings;
87
88 int tagBegin;
89 int tagEnd;
80}; 90};
81 91
82//![codeeditordefinition] 92//![codeeditordefinition]