The MoveGraphicsItemCommand class An undo command used for move item(s) in a diagram.
More...
#include <movegraphicsitemcommand.h>
Inherits QUndoCommand.
The MoveGraphicsItemCommand class An undo command used for move item(s) in a diagram.
◆ MoveGraphicsItemCommand() [1/2]
MoveGraphicsItemCommand::MoveGraphicsItemCommand |
( |
Diagram * |
diagram, |
|
|
const DiagramContent & |
content, |
|
|
const QPointF & |
movement, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ ~MoveGraphicsItemCommand()
MoveGraphicsItemCommand::~MoveGraphicsItemCommand |
( |
| ) |
|
|
inline |
◆ MoveGraphicsItemCommand() [2/2]
◆ move()
void MoveGraphicsItemCommand::move |
( |
const QPointF & |
movement | ) |
|
|
private |
◆ redo()
void MoveGraphicsItemCommand::redo |
( |
| ) |
|
|
override |
◆ setupAnimation()
void MoveGraphicsItemCommand::setupAnimation |
( |
QObject * |
target, |
|
|
const QByteArray & |
property_name, |
|
|
const QVariant & |
start, |
|
|
const QVariant & |
end |
|
) |
| |
|
private |
◆ undo()
void MoveGraphicsItemCommand::undo |
( |
| ) |
|
|
override |
◆ m_anim_group
QParallelAnimationGroup MoveGraphicsItemCommand::m_anim_group |
|
private |
◆ m_content
◆ m_diagram
QPointer<Diagram> MoveGraphicsItemCommand::m_diagram |
|
private |
◆ m_first_redo
bool MoveGraphicsItemCommand::m_first_redo {true} |
|
private |
◆ m_movement
const QPointF MoveGraphicsItemCommand::m_movement |
|
private |
The documentation for this class was generated from the following files: