A simple solid color shape background.
More...
#include <KoColorBackground.h>
A simple solid color shape background.
Definition at line 20 of file KoColorBackground.h.
◆ KoColorBackground() [1/3]
| KoColorBackground::KoColorBackground |
( |
| ) |
|
◆ KoColorBackground() [2/3]
| KoColorBackground::KoColorBackground |
( |
const QColor & | color, |
|
|
Qt::BrushStyle | style = Qt::SolidPattern ) |
|
explicit |
Creates background from given color and style.
Definition at line 33 of file KoColorBackground.cpp.
36{
37 if (style < Qt::SolidPattern || style >= Qt::LinearGradientPattern) {
38 style = Qt::SolidPattern;
39 }
40
43}
Qt::BrushStyle style() const
Returns the background style.
QColor color() const
Returns the background color.
References color(), d, and style().
◆ ~KoColorBackground()
| KoColorBackground::~KoColorBackground |
( |
| ) |
|
|
override |
◆ KoColorBackground() [3/3]
◆ brush()
| QBrush KoColorBackground::brush |
( |
| ) |
const |
◆ color()
| QColor KoColorBackground::color |
( |
| ) |
const |
◆ compareTo()
◆ operator=()
◆ paint()
| void KoColorBackground::paint |
( |
QPainter & | painter, |
|
|
const QPainterPath & | fillPath ) const |
|
overridevirtual |
◆ setColor()
| void KoColorBackground::setColor |
( |
const QColor & | color | ) |
|
◆ style()
| Qt::BrushStyle KoColorBackground::style |
( |
| ) |
const |
| QSharedDataPointer<Private> KoColorBackground::d |
|
private |
The documentation for this class was generated from the following files: