50 #ifndef CODEEDITORWIDGET_HH
51 #define CODEEDITORWIDGET_HH
53 #include <QPlainTextEdit>
71 void lineNumberAreaPaintEvent(QPaintEvent *event);
72 int lineNumberAreaWidth();
75 void resizeEvent(QResizeEvent *event);
78 void highLightErrorLine(
int _line);
81 void updateLineNumberAreaWidth(
int newBlockCount);
82 void highlightCurrentLine();
83 void updateLineNumberArea(
const QRect &,
int);
86 QWidget *lineNumberArea;
97 QSize sizeHint()
const {
98 return QSize(codeEditor->lineNumberAreaWidth(), 0);
102 void paintEvent(QPaintEvent *event) {
103 codeEditor->lineNumberAreaPaintEvent(event);