]> git.lyx.org Git - features.git/commitdiff
little wiggles for on-the-fly spellcheck
authorEdwin Leuven <e.leuven@gmail.com>
Sun, 21 Mar 2010 20:26:30 +0000 (20:26 +0000)
committerEdwin Leuven <e.leuven@gmail.com>
Sun, 21 Mar 2010 20:26:30 +0000 (20:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33827 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPainter.cpp

index afa2182eb671f4ee3e53208c0df13efc4a273e86..47bed63c3c9e5119443fac8489338c0e35ccd103 100644 (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);
 }