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)
while (block.isValid() && top <= event->rect().bottom()) {
if (block.isVisible() && bottom >= event->rect().top()) {
QString number = QString::number(blockNumber + 1);
+ /* Drawing an error circle if necessary */
+ if(errors.contains(blockNumber + 1))
+ {
+ painter.fillRect(QRect(0, top, lineNumberArea->width(),
+ fontMetrics().height()), Qt::red);
+ }
painter.setPen(Qt::black);
- painter.drawText(0, top, lineNumberArea->width(), fontMetrics().height(),
- Qt::AlignRight, number);
+ painter.drawText(0, top, lineNumberArea->width(),
+ fontMetrics().height(), Qt::AlignRight, number);
}
block = block.next();