44 #ifndef CODEEDITORWIDGET_HH 45 #define CODEEDITORWIDGET_HH 47 #include <QPlainTextEdit> 65 void lineNumberAreaPaintEvent(QPaintEvent *event);
66 int lineNumberAreaWidth();
69 void resizeEvent(QResizeEvent *event);
72 void highLightErrorLine(
int _line);
75 void updateLineNumberAreaWidth(
int newBlockCount);
76 void highlightCurrentLine();
77 void updateLineNumberArea(
const QRect &,
int);
80 QWidget *lineNumberArea;
91 QSize sizeHint()
const {
92 return QSize(codeEditor->lineNumberAreaWidth(), 0);
96 void paintEvent(QPaintEvent *event) {
97 codeEditor->lineNumberAreaPaintEvent(event);