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 528dfb2..a25c566 100644 --- a/utils/themeeditor/gui/codeeditor.h +++ b/utils/themeeditor/gui/codeeditor.h @@ -38,6 +38,9 @@ #include <QPlainTextEdit> #include <QObject> +#include <QSettings> + +#include "syntaxcompleter.h" QT_BEGIN_NAMESPACE class QPaintEvent; @@ -68,15 +71,22 @@ public: protected: void resizeEvent(QResizeEvent *event); + void keyPressEvent(QKeyEvent *event); private slots: void updateLineNumberAreaWidth(int newBlockCount); void updateLineNumberArea(const QRect &, int); + void cursorMoved(); private: QWidget *lineNumberArea; QList<int> errors; QColor errorColor; + SyntaxCompleter completer; + QSettings settings; + + int tagBegin; + int tagEnd; }; //![codeeditordefinition] |