9#include <klocalizedstring.h>
36 Q_FOREACH (
KoShape *shape,
d->shapes) {
56 Q_FOREACH (
KoShape *shape,
d->shapes) {
68 Q_FOREACH (
KoShape *shape,
d->shapes) {
87 if (!other || other->
d->shapes !=
d->shapes) {
91 d->first = other->
d->first;
92 d->second = other->
d->second;
void setText(const KUndo2MagicString &text)
void redo() override
redo the command
QList< KoShape::PaintOrder > oldSecond
KoShape::PaintOrder first
QList< KoShape::PaintOrder > oldFirst
~KoShapePaintOrderCommand() override
void undo() override
revert the actions done in redo
bool mergeWith(const KUndo2Command *command) override
KoShape::PaintOrder second
QList< bool > paintOrderInherited
KoShapePaintOrderCommand(const QList< KoShape * > &shapes, KoShape::PaintOrder first, KoShape::PaintOrder second, KUndo2Command *parent=nullptr)
QList< KoShape * > shapes
virtual void setPaintOrder(PaintOrder first, PaintOrder second)
setPaintOrder set the paint order. As there's only three entries in any given paintorder,...
virtual QVector< PaintOrder > paintOrder() const
paintOrder
virtual void update() const
bool inheritPaintOrder() const
inheritPaintOrder
void setInheritPaintOrder(bool value)
setInheritPaintOrder set inherit paint order.
KUndo2MagicString kundo2_i18n(const char *text)
@ ChangePaintOrderCommand