The AddGraphicsObjectCommand class Undo command to used to add item to a diagram.  
 More...
#include <addgraphicsobjectcommand.h>
Inherits QUndoCommand.
The AddGraphicsObjectCommand class Undo command to used to add item to a diagram. 
◆ AddGraphicsObjectCommand()
      
        
          | AddGraphicsObjectCommand::AddGraphicsObjectCommand | ( | QGraphicsObject * | qgo, | 
        
          |  |  | Diagram * | diagram, | 
        
          |  |  | const QPointF & | pos = QPointF(), | 
        
          |  |  | QUndoCommand * | parent = nullptr | 
        
          |  | ) |  |  | 
      
 
AddGraphicsObjectCommand::AddGraphicsObjectCommand Default constructor. 
- Parameters
- 
  
    | qgo | : QGraphicsObject to manage by this undo command |  | diagram | : Diagram where the graphics object must be added |  | pos | : position of the qgraphics object in the diagram in scene coordinate |  | parent | : parent undo command of this class. |  
 
 
 
◆ ~AddGraphicsObjectCommand()
  
  | 
        
          | AddGraphicsObjectCommand::~AddGraphicsObjectCommand | ( |  | ) |  |  | override | 
 
 
◆ itemText()
  
  | 
        
          | QString AddGraphicsObjectCommand::itemText | ( |  | ) | const |  | private | 
 
 
◆ redo()
  
  | 
        
          | void AddGraphicsObjectCommand::redo | ( |  | ) |  |  | override | 
 
 
◆ undo()
  
  | 
        
          | void AddGraphicsObjectCommand::undo | ( |  | ) |  |  | override | 
 
 
◆ m_diagram
  
  | 
        
          | Diagram* AddGraphicsObjectCommand::m_diagram = nullptr |  | private | 
 
 
◆ m_item
  
  | 
        
          | QPointer<QGraphicsObject> AddGraphicsObjectCommand::m_item |  | private | 
 
 
◆ m_pos
  
  | 
        
          | QPointF AddGraphicsObjectCommand::m_pos |  | private | 
 
 
The documentation for this class was generated from the following files: