10#include <klocalizedstring.h>
31 Q_FOREACH (
KoShape *shape,
d->shapes) {
33 d->newTransparencies.append(transparency);
43 d->shapes.append(shape);
45 d->newTransparencies.append(transparency);
55 Q_FOREACH (
KoShape *shape,
d->shapes) {
58 d->newTransparencies = transparencies;
72 Q_FOREACH (
KoShape *shape,
d->shapes) {
83 Q_FOREACH (
KoShape *shape,
d->shapes) {
99 if (!other || other->
d->shapes !=
d->shapes) {
103 d->newTransparencies = other->
d->newTransparencies;
void setText(const KUndo2MagicString &text)
The undo / redo command for setting the shape transparency.
QList< qreal > newTransparencies
the new transparencies
QList< qreal > oldTransparencies
the old transparencies
~KoShapeTransparencyCommand() override
void redo() override
redo the command
QList< KoShape * > shapes
the shapes to set background for
KoShapeTransparencyCommand(const QList< KoShape * > &shapes, qreal transparency, KUndo2Command *parent=0)
void undo() override
revert the actions done in redo
bool mergeWith(const KUndo2Command *command) override
void setTransparency(qreal transparency)
virtual void update() const
qreal transparency(bool recursive=false) const
KUndo2MagicString kundo2_i18n(const char *text)
@ ChangeShapeTransparencyId