Skip to content

Commit

Permalink
Improved search highlighting not to be so jagged
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Jun 30, 2017
1 parent 672e1a7 commit 5594acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edbee-lib/edbee/views/components/texteditorrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ void TextEditorRenderer::renderLineBorderedRanges(QPainter *painter,int line)
int lineHeight = renderer()->lineHeight();

QPen pen(themeRef_->foregroundColor(), 0.5);

painter->setRenderHint(QPainter::Antialiasing);

int firstRangeIdx=0;
int lastRangeIdx=0;
/// TODO: iprove ranges at line by calling rangesForOffsets first for only the visible offsets!
/// TODO: improve ranges at line by calling rangesForOffsets first for only the visible offsets!
if( sel->rangesAtLine( line, firstRangeIdx, lastRangeIdx ) ) {

QTextLayout* textLayout = renderer()->textLayoutForLine(line);
Expand Down

0 comments on commit 5594acb

Please sign in to comment.