QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ChangeElementDataCommand Class Reference

#include <changeelementdatacommand.h>

Inherits QUndoCommand.

Collaboration diagram for ChangeElementDataCommand:
Collaboration graph

Public Member Functions

 ChangeElementDataCommand (Element *element, ElementData new_data, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 

Private Attributes

QPointer< Elementm_element
 
ElementData m_old_data
 
ElementData m_new_data
 

Constructor & Destructor Documentation

◆ ChangeElementDataCommand()

ChangeElementDataCommand::ChangeElementDataCommand ( Element element,
ElementData  new_data,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

void ChangeElementDataCommand::redo ( )
override

◆ undo()

void ChangeElementDataCommand::undo ( )
override

Member Data Documentation

◆ m_element

QPointer<Element> ChangeElementDataCommand::m_element
private

◆ m_new_data

ElementData ChangeElementDataCommand::m_new_data
private

◆ m_old_data

ElementData ChangeElementDataCommand::m_old_data
private

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