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

The RemoveTextFromGroupCommand class. More...

#include <addelementtextcommand.h>

Inherits QUndoCommand.

Collaboration diagram for RemoveTextFromGroupCommand:
Collaboration graph

Public Member Functions

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

Private Attributes

QPointer< DynamicElementTextItemm_text
 
QPointer< ElementTextItemGroupm_group
 
QPointer< Elementm_element
 

Detailed Description

The RemoveTextFromGroupCommand class.

Constructor & Destructor Documentation

◆ RemoveTextFromGroupCommand()

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

RemoveTextFromGroupCommand::RemoveTextFromGroupCommand.

Parameters
text: text to add to group
group
parent: parent undo command

◆ ~RemoveTextFromGroupCommand()

RemoveTextFromGroupCommand::~RemoveTextFromGroupCommand ( )
override

Member Function Documentation

◆ redo()

void RemoveTextFromGroupCommand::redo ( )
override

◆ undo()

void RemoveTextFromGroupCommand::undo ( )
override

Member Data Documentation

◆ m_element

QPointer<Element> RemoveTextFromGroupCommand::m_element
private

◆ m_group

QPointer<ElementTextItemGroup> RemoveTextFromGroupCommand::m_group
private

◆ m_text

QPointer<DynamicElementTextItem> RemoveTextFromGroupCommand::m_text
private

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