summaryrefslogtreecommitdiff
path: root/utils/themeeditor/codeeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/codeeditor.cpp')
-rw-r--r--utils/themeeditor/codeeditor.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/themeeditor/codeeditor.cpp b/utils/themeeditor/codeeditor.cpp
index 672b210d2e..d4b46ac52e 100644
--- a/utils/themeeditor/codeeditor.cpp
+++ b/utils/themeeditor/codeeditor.cpp
@@ -128,9 +128,15 @@ void CodeEditor::lineNumberAreaPaintEvent(QPaintEvent *event)
128 while (block.isValid() && top <= event->rect().bottom()) { 128 while (block.isValid() && top <= event->rect().bottom()) {
129 if (block.isVisible() && bottom >= event->rect().top()) { 129 if (block.isVisible() && bottom >= event->rect().top()) {
130 QString number = QString::number(blockNumber + 1); 130 QString number = QString::number(blockNumber + 1);
131 /* Drawing an error circle if necessary */
132 if(errors.contains(blockNumber + 1))
133 {
134 painter.fillRect(QRect(0, top, lineNumberArea->width(),
135 fontMetrics().height()), Qt::red);
136 }
131 painter.setPen(Qt::black); 137 painter.setPen(Qt::black);
132 painter.drawText(0, top, lineNumberArea->width(), fontMetrics().height(), 138 painter.drawText(0, top, lineNumberArea->width(),
133 Qt::AlignRight, number); 139 fontMetrics().height(), Qt::AlignRight, number);
134 } 140 }
135 141
136 block = block.next(); 142 block = block.next();