little wiggles for on-the-fly spellcheck

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33827 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-03-21 20:26:30 +00:00
parent 440c955acc
commit 2f6ec82064

View File

@ -590,7 +590,7 @@ void GuiPainter::dashedUnderline(FontInfo const & f, int x, int y, int width)
void GuiPainter::wavyHorizontalLine(int x, int y, int width, ColorCode col)
{
setQPainterPen(computeColor(col));
int const step = 4;
int const step = 2;
int const xend = x + width;
int height = 1;
//FIXME: I am not sure if Antialiasing gives the best effect.
@ -599,8 +599,8 @@ void GuiPainter::wavyHorizontalLine(int x, int y, int width, ColorCode col)
height = - height;
drawLine(x, y - height, x + step, y + height);
x += step;
drawLine(x, y + height, x + 2, y + height);
x += 2;
drawLine(x, y + height, x + step/2, y + height);
x += step/2;
}
//setRenderHint(Antialiasing, false);
}