diff options
Diffstat (limited to 'utils/themeeditor/gui/codeeditor.h')
-rw-r--r-- | utils/themeeditor/gui/codeeditor.h | 10 |
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 | ||
42 | QT_BEGIN_NAMESPACE | 45 | QT_BEGIN_NAMESPACE |
43 | class QPaintEvent; | 46 | class QPaintEvent; |
@@ -68,15 +71,22 @@ public: | |||
68 | 71 | ||
69 | protected: | 72 | protected: |
70 | void resizeEvent(QResizeEvent *event); | 73 | void resizeEvent(QResizeEvent *event); |
74 | void keyPressEvent(QKeyEvent *event); | ||
71 | 75 | ||
72 | private slots: | 76 | private 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 | ||
76 | private: | 81 | private: |
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] |