Go to the documentation of this file.
16#ifndef KDSME_COMMAND_MODIFYTRANSITIONCOMMAND_P_H
17#define KDSME_COMMAND_MODIFYTRANSITIONCOMMAND_P_H
21#include <QPainterPath>
42 int id()
const override
47 Q_INVOKABLE
void setSourceState(
KDSME::State *sourceState);
48 Q_INVOKABLE
void setTargetState(
KDSME::State *targetState);
49 Q_INVOKABLE
void setShape(
const QPainterPath &shape);
53 bool mergeWith(
const QUndoCommand *other)
override;
58 QPointer<Transition> m_transition;
63 SetSourceStateOperation,
64 SetTargetStateOperation,
68 QPointer<State> m_sourceState, m_oldSourceState;
69 QPointer<State> m_targetState, m_oldTargetState;
70 QPainterPath m_shape, m_oldShape;
Command(StateModel *model, QUndoCommand *parent=nullptr)
StateModel * model() const
ModifyTransitionCommand(Transition *transition, StateModel *model, QUndoCommand *parent=nullptr)