QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
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.
 
 ~AddTextToGroupCommand () override
 AddTextToGroupCommand::~AddTextToGroupCommand Destructor.
 
void undo () override
 AddTextToGroupCommand::undo.
 
void redo () override
 AddTextToGroupCommand::redo.
 

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: