void GuiPainter::wavyHorizontalLine(int x, int y, int width, ColorCode col)
{
setQPainterPen(computeColor(col));
void GuiPainter::wavyHorizontalLine(int x, int y, int width, ColorCode col)
{
setQPainterPen(computeColor(col));
int const xend = x + width;
int height = 1;
//FIXME: I am not sure if Antialiasing gives the best effect.
int const xend = x + width;
int height = 1;
//FIXME: I am not sure if Antialiasing gives the best effect.
height = - height;
drawLine(x, y - height, x + step, y + height);
x += step;
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);
}
}
//setRenderHint(Antialiasing, false);
}