10#include <klocalizedstring.h>
15 Private(Qt::FillRule fillRule) : newFillRule(fillRule) {
29 d->oldFillRules.append(shape->
fillRule());
void setText(const KUndo2MagicString &text)
The undo / redo command for setting the fill rule of a path shape.
KoPathFillRuleCommand(const QList< KoPathShape * > &shapes, Qt::FillRule fillRule, KUndo2Command *parent=0)
QList< Qt::FillRule > oldFillRules
the old fill rules, one for each shape
void redo() override
redo the command
void undo() override
revert the actions done in redo
Private(Qt::FillRule fillRule)
Qt::FillRule newFillRule
the new fill rule to set
~KoPathFillRuleCommand() override
QList< KoPathShape * > shapes
the shapes to set fill rule for
The position of a path point within a path shape.
Qt::FillRule fillRule() const
Returns the fill rule for the path object.
void setFillRule(Qt::FillRule fillRule)
Sets the fill rule to be used for painting the background.
void update() const override
reimplemented
KUndo2MagicString kundo2_i18n(const char *text)