QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
DeletePartsCommand Class Reference

The DeletePartsCommand class Class used to remove part from an element scene. More...

#include <deletepartscommand.h>

Inheritance diagram for DeletePartsCommand:
Inheritance graph
Collaboration diagram for DeletePartsCommand:
Collaboration graph

Public Member Functions

 DeletePartsCommand (QPointer< ElementScene > scene, const QVector< QGraphicsItem * > &parts, QUndoCommand *parent=nullptr)
 DeletePartsCommand::DeletePartsCommand.
 ~DeletePartsCommand () override
 DeletePartsCommand::~DeletePartsCommand.
void undo () override
 DeletePartsCommand::undo.
void redo () override
 DeletePartsCommand::redo.

Private Member Functions

 DeletePartsCommand (const DeletePartsCommand &)

Private Attributes

QPointer< ElementScenem_scene
QVector< QGraphicsItem * > m_parts

Detailed Description

The DeletePartsCommand class Class used to remove part from an element scene.

Constructor & Destructor Documentation

◆ DeletePartsCommand() [1/2]

DeletePartsCommand::DeletePartsCommand ( QPointer< ElementScene > scene,
const QVector< QGraphicsItem * > & parts,
QUndoCommand * parent = nullptr )

DeletePartsCommand::DeletePartsCommand.

Parameters
scene
parts
parent
Here is the caller graph for this function:

◆ ~DeletePartsCommand()

DeletePartsCommand::~DeletePartsCommand ( )
override

◆ DeletePartsCommand() [2/2]

DeletePartsCommand::DeletePartsCommand ( const DeletePartsCommand & )
private
Here is the call graph for this function:

Member Function Documentation

◆ redo()

void DeletePartsCommand::redo ( )
override

◆ undo()

void DeletePartsCommand::undo ( )
override

Member Data Documentation

◆ m_parts

QVector<QGraphicsItem *> DeletePartsCommand::m_parts
private

◆ m_scene

QPointer<ElementScene> DeletePartsCommand::m_scene
private

The documentation for this class was generated from the following files: