QElectroTech  0.8-dev
Public Member Functions | Private Attributes | List of all members
AddTextToGroupCommand Class Reference

The AddTextToGroupCommand class. More...

#include <addelementtextcommand.h>

Inherits QUndoCommand.

Collaboration diagram for AddTextToGroupCommand:
Collaboration graph

Public Member Functions

 AddTextToGroupCommand (DynamicElementTextItem *text, ElementTextItemGroup *group, QUndoCommand *parent=nullptr)
 AddTextToGroupCommand::AddTextToGroupCommand. More...
 
 ~AddTextToGroupCommand () override
 AddTextToGroupCommand::~AddTextToGroupCommand Destructor. More...
 
void undo () override
 AddTextToGroupCommand::undo. More...
 
void redo () override
 AddTextToGroupCommand::redo. More...
 

Private Attributes

QPointer< DynamicElementTextItemm_text
 
QPointer< ElementTextItemGroupm_group
 
QPointer< Elementm_element
 

Detailed Description

The AddTextToGroupCommand class.

Constructor & Destructor Documentation

◆ AddTextToGroupCommand()

AddTextToGroupCommand::AddTextToGroupCommand ( DynamicElementTextItem text,
ElementTextItemGroup group,
QUndoCommand *  parent = nullptr 
)

AddTextToGroupCommand::AddTextToGroupCommand.

Parameters
text
group
parent

◆ ~AddTextToGroupCommand()

AddTextToGroupCommand::~AddTextToGroupCommand ( )
override

Member Function Documentation

◆ redo()

void AddTextToGroupCommand::redo ( )
override

◆ undo()

void AddTextToGroupCommand::undo ( )
override

Member Data Documentation

◆ m_element

QPointer<Element> AddTextToGroupCommand::m_element
private

◆ m_group

QPointer<ElementTextItemGroup> AddTextToGroupCommand::m_group
private

◆ m_text

QPointer<DynamicElementTextItem> AddTextToGroupCommand::m_text
private

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