20 ,
style(Qt::SolidPattern)
37 if (style < Qt::SolidPattern || style >= Qt::LinearGradientPattern) {
38 style = Qt::SolidPattern;
63 return bg && bg->
color() ==
d->color;
83 return QBrush(
d->color,
d->style);
88 painter.setBrush(
brush());
89 painter.drawPath(fillPath);
A simple solid color shape background.
bool compareTo(const KoShapeBackground *other) const override
void paint(QPainter &painter, const QPainterPath &fillPath) const override
Paints the background using the given fill path.
void setColor(const QColor &color)
Sets the background color.
Qt::BrushStyle style() const
Returns the background style.
QSharedDataPointer< Private > d
KoColorBackground & operator=(const KoColorBackground &)
QColor color() const
Returns the background color.
~KoColorBackground() override