- qp_->fillRect(x, y, w, h, lcolorcache.get(col));
-}
-
-
-void QLPainter::fillPolygon(int const * xp, int const * yp,
- int np, LColor_color col)
-{
- // Must use new as np is not known at compile time.
- boost::scoped_array<QPoint> points(new QPoint[np]);
-
- for (int i = 0; i < np; ++i) {
- points[i].setX(xp[i]);
- points[i].setY(yp[i]);
- }
-
- setQPainterPen(col);
- qp_->setBrush(lcolorcache.get(col));
- qp_->drawPolygon(points.get(), np);
- qp_->setBrush(Qt::NoBrush);
+ fillRect(x, y, w, h, guiApp->colorCache().get(col));