12#include <klocalizedstring.h>
29 oldFills.append(oldFill);
34 newFills.append(newFill);
48 Q_FOREACH (
KoShape *shape,
d->shapes) {
60 d->shapes.append(shape);
72 Q_FOREACH (
KoShape *shape,
d->shapes) {
86 Q_FOREACH (
KoShape *shape,
d->shapes) {
97 Q_FOREACH (
KoShape *shape,
d->shapes) {
114 other->
d->shapes !=
d->shapes) {
119 d->newFills= other->
d->newFills;
void setText(const KUndo2MagicString &text)
The undo / redo command for setting the shape background.
void redo() override
redo the command
void undo() override
revert the actions done in redo
QList< QSharedPointer< KoShapeBackground > > newFills
bool mergeWith(const KUndo2Command *command) override
QList< KoShape * > shapes
the shapes to set background for
~KoShapeBackgroundCommand() override
QList< QSharedPointer< KoShapeBackground > > oldFills
KoShapeBackgroundCommand(const QList< KoShape * > &shapes, QSharedPointer< KoShapeBackground > fill, KUndo2Command *parent=0)
void addOldFill(QSharedPointer< KoShapeBackground > oldFill)
void addNewFill(QSharedPointer< KoShapeBackground > newFill)
virtual void update() const
virtual void setBackground(QSharedPointer< KoShapeBackground > background)
virtual QSharedPointer< KoShapeBackground > background() const
KUndo2MagicString kundo2_i18n(const char *text)
@ ChangeShapeBackgroundId