The AddPartCommand class Undo command use to add a graphics part into an element scene.  
 More...
#include <addpartcommand.h>
Inherits QUndoCommand.
The AddPartCommand class Undo command use to add a graphics part into an element scene. 
◆ AddPartCommand() [1/2]
      
        
          | AddPartCommand::AddPartCommand | ( | const QString & | text, | 
        
          |  |  | QPointer< ElementScene > | scene, | 
        
          |  |  | QGraphicsItem * | part, | 
        
          |  |  | QUndoCommand * | parent = nullptr | 
        
          |  | ) |  |  | 
      
 
AddPartCommand::AddPartCommand. 
- Parameters
- 
  
    | text | : text of the undo command |  | scene | : scene where part must be added |  | part | : part to add |  | parent | : parent undo command |  
 
 
 
◆ ~AddPartCommand()
  
  | 
        
          | AddPartCommand::~AddPartCommand | ( |  | ) |  |  | override | 
 
 
◆ AddPartCommand() [2/2]
◆ redo()
  
  | 
        
          | void AddPartCommand::redo | ( |  | ) |  |  | override | 
 
 
◆ undo()
  
  | 
        
          | void AddPartCommand::undo | ( |  | ) |  |  | override | 
 
 
◆ m_first_redo
  
  | 
        
          | bool AddPartCommand::m_first_redo {true} |  | private | 
 
 
◆ m_part
  
  | 
        
          | QVector<QGraphicsItem *> AddPartCommand::m_part |  | private | 
 
 
◆ m_scene
The documentation for this class was generated from the following files: