18#ifndef ADDPARTCOMMAND_H
19#define ADDPARTCOMMAND_H
21#include <QUndoCommand>
35 AddPartCommand(
const QString &text, QPointer<ElementScene> scene, QGraphicsItem *part, QUndoCommand *parent =
nullptr);
The AddPartCommand class Undo command use to add a graphics part into an element scene.
Definition addpartcommand.h:33
AddPartCommand(const AddPartCommand &)
bool m_first_redo
Definition addpartcommand.h:48
QVector< QGraphicsItem * > m_part
Definition addpartcommand.h:47
~AddPartCommand() override
AddPartCommand::~AddPartCommand.
Definition addpartcommand.cpp:43
void redo() override
AddPartCommand::redo.
Definition addpartcommand.cpp:63
void undo() override
AddPartCommand::undo.
Definition addpartcommand.cpp:53
QPointer< ElementScene > m_scene
Definition addpartcommand.h:46
The ElementScene class This class is the canvas allowing the visual edition of an electrical element....
Definition elementscene.h:46