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

The RemoveTextsGroupCommand class Manage the removinf of a texts group. More...

#include <addelementtextcommand.h>

Inherits QUndoCommand.

Collaboration diagram for RemoveTextsGroupCommand:
Collaboration graph

Public Member Functions

 RemoveTextsGroupCommand (Element *element, ElementTextItemGroup *group, QUndoCommand *parent=nullptr)
 RemoveTextsGroupCommand::RemoveTextsGroupCommand.
 
 ~RemoveTextsGroupCommand () override
 RemoveTextsGroupCommand::~RemoveTextsGroupCommand.
 
void undo () override
 RemoveTextsGroupCommand::undo.
 
void redo () override
 RemoveTextsGroupCommand::redo.
 

Private Attributes

QPointer< Elementm_element
 
QPointer< ElementTextItemGroupm_group
 
QList< QPointer< DynamicElementTextItem > > m_text_list
 

Detailed Description

The RemoveTextsGroupCommand class Manage the removinf of a texts group.

Constructor & Destructor Documentation

◆ RemoveTextsGroupCommand()

RemoveTextsGroupCommand::RemoveTextsGroupCommand ( Element element,
ElementTextItemGroup group,
QUndoCommand *  parent = nullptr 
)

RemoveTextsGroupCommand::RemoveTextsGroupCommand.

Parameters
element: The element where we remove a group
group: the group to remove
parent: the parent undo command
Here is the call graph for this function:

◆ ~RemoveTextsGroupCommand()

RemoveTextsGroupCommand::~RemoveTextsGroupCommand ( )
override

Member Function Documentation

◆ redo()

void RemoveTextsGroupCommand::redo ( )
override

◆ undo()

void RemoveTextsGroupCommand::undo ( )
override

Member Data Documentation

◆ m_element

QPointer<Element> RemoveTextsGroupCommand::m_element
private

◆ m_group

QPointer<ElementTextItemGroup> RemoveTextsGroupCommand::m_group
private

◆ m_text_list

QList<QPointer<DynamicElementTextItem> > RemoveTextsGroupCommand::m_text_list
private

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