QElectroTech  0.8-dev
Public Member Functions | Private Attributes | List of all members
AddItemCommand< QGI > Class Template Reference

The AddItemCommand class This command add an item in a diagram The item to add is template, but must be QGraphicsItem or derived. More...

#include <diagramcommands.h>

Inherits QUndoCommand.

Collaboration diagram for AddItemCommand< QGI >:
Collaboration graph

Public Member Functions

 AddItemCommand (QGI item, Diagram *diagram, const QPointF &pos=QPointF(), QUndoCommand *parent=nullptr)
 
 ~AddItemCommand () override
 
void undo () override
 
void redo () override
 

Private Attributes

QGI m_item
 
Diagramm_diagram
 
QPointF m_pos
 

Detailed Description

template<typename QGI>
class AddItemCommand< QGI >

The AddItemCommand class This command add an item in a diagram The item to add is template, but must be QGraphicsItem or derived.

Constructor & Destructor Documentation

◆ AddItemCommand()

template<typename QGI >
AddItemCommand< QGI >::AddItemCommand ( QGI  item,
Diagram diagram,
const QPointF &  pos = QPointF(),
QUndoCommand *  parent = nullptr 
)
inline
Here is the call graph for this function:

◆ ~AddItemCommand()

template<typename QGI >
AddItemCommand< QGI >::~AddItemCommand ( )
inlineoverride

Member Function Documentation

◆ redo()

template<typename QGI >
void AddItemCommand< QGI >::redo ( )
inlineoverride

◆ undo()

template<typename QGI >
void AddItemCommand< QGI >::undo ( )
inlineoverride

Member Data Documentation

◆ m_diagram

template<typename QGI >
Diagram* AddItemCommand< QGI >::m_diagram
private

◆ m_item

template<typename QGI >
QGI AddItemCommand< QGI >::m_item
private

◆ m_pos

template<typename QGI >
QPointF AddItemCommand< QGI >::m_pos
private

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