diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-11 19:03:49 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-11 19:03:49 +0000 |
| commit | 0c383538693f04d1e5bc81f4af6a6e9585296bcb (patch) | |
| tree | d024070233b007b1e1c232c600f9b17009b2bd2e /utils/themeeditor/codeeditor.cpp | |
| parent | 3fec40194c2c07a1693536f08cb9214cec390cf9 (diff) | |
| download | rockbox-0c383538693f04d1e5bc81f4af6a6e9585296bcb.zip rockbox-0c383538693f04d1e5bc81f4af6a6e9585296bcb.tar.gz rockbox-0c383538693f04d1e5bc81f4af6a6e9585296bcb.tar.bz2 rockbox-0c383538693f04d1e5bc81f4af6a6e9585296bcb.tar.xz | |
Theme Editor: Switched error highlighting to the line numbers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26785 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/codeeditor.cpp')
| -rw-r--r-- | utils/themeeditor/codeeditor.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/themeeditor/codeeditor.cpp b/utils/themeeditor/codeeditor.cpp index 672b210..d4b46ac 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(); |