18#ifndef DELETEPARTSCOMMAND_H
19#define DELETEPARTSCOMMAND_H
21#include <QUndoCommand>
35 DeletePartsCommand(QPointer<ElementScene> scene,
const QVector<QGraphicsItem *> &parts, QUndoCommand *parent =
nullptr);
The DeletePartsCommand class Class used to remove part from an element scene.
Definition deletepartscommand.h:33
QPointer< ElementScene > m_scene
Definition deletepartscommand.h:45
void undo() override
DeletePartsCommand::undo.
Definition deletepartscommand.cpp:51
QVector< QGraphicsItem * > m_parts
Definition deletepartscommand.h:46
DeletePartsCommand(const DeletePartsCommand &)
~DeletePartsCommand() override
DeletePartsCommand::~DeletePartsCommand.
Definition deletepartscommand.cpp:41
void redo() override
DeletePartsCommand::redo.
Definition deletepartscommand.cpp:61
The ElementScene class This class is the canvas allowing the visual edition of an electrical element....
Definition elementscene.h:46