- for (int n = 0; n < height; ++n)
- line(x, y + below + n, x + width, y + below + n, f.color(), line_onoffdash);
+ for (int n = 0; n != height; ++n)
+ line(x, y + below + n, x + width, y + below + n, f.realColor(), line_onoffdash);
+}
+
+
+void GuiPainter::wavyHorizontalLine(int x, int y, int width, ColorCode col)
+{
+ setQPainterPen(computeColor(col));
+ int const step = 4;
+ int const xend = x + width;
+ int height = 1;
+ //FIXME: I am not sure if Antialiasing gives the best effect.
+ //setRenderHint(Antialiasing, true);
+ while (x < xend) {
+ height = - height;
+ drawLine(x, y - height, x + step, y + height);
+ x += step;
+ drawLine(x, y + height, x + 2, y + height);
+ x += 2;
+ }
+ //setRenderHint(Antialiasing, false);