Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoColorBackground.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
47 | d->style = style; | 47 | d->style = style; | ||
48 | d->color = color; | 48 | d->color = color; | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | KoColorBackground::~KoColorBackground() | 51 | KoColorBackground::~KoColorBackground() | ||
52 | { | 52 | { | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | bool KoColorBackground::compareTo(const KoShapeBackground *other) const | ||||
56 | { | ||||
57 | Q_D(const KoColorBackground); | ||||
58 | | ||||
59 | const KoColorBackground *bg = dynamic_cast<const KoColorBackground*>(other); | ||||
60 | return bg && bg->color() == d->color; | ||||
61 | } | ||||
62 | | ||||
55 | QColor KoColorBackground::color() const | 63 | QColor KoColorBackground::color() const | ||
56 | { | 64 | { | ||
57 | Q_D(const KoColorBackground); | 65 | Q_D(const KoColorBackground); | ||
58 | return d->color; | 66 | return d->color; | ||
59 | } | 67 | } | ||
60 | 68 | | |||
61 | void KoColorBackground::setColor(const QColor &color) | 69 | void KoColorBackground::setColor(const QColor &color) | ||
62 | { | 70 | { | ||
Show All 40 Lines |