|
QElectroTech
0.70
|
#include <addelementtextcommand.h>
Public Member Functions | |
| AlignmentTextsGroupCommand (ElementTextItemGroup *group, Qt::Alignment new_alignment, QUndoCommand *parent=nullptr) | |
| AlignmentTextsGroupCommand::AlignmentTextsGroupCommand. More... | |
| ~AlignmentTextsGroupCommand () override | |
| AlignmentTextsGroupCommand::~AlignmentTextsGroupCommand Destructor. More... | |
| int | id () const override |
| bool | mergeWith (const QUndoCommand *other) override |
| AlignmentTextsGroupCommand::mergeWith Try to merge this command with other command. More... | |
| void | undo () override |
| AlignmentTextsGroupCommand::undo. More... | |
| void | redo () override |
| AlignmentTextsGroupCommand::redo. More... | |
Private Attributes | |
| QPointer< ElementTextItemGroup > | m_group |
| Qt::Alignment | m_previous_alignment |
| Qt::Alignment | m_new_alignment |
| QHash< DynamicElementTextItem *, QPointF > | m_texts_pos |
Definition at line 120 of file addelementtextcommand.h.
| AlignmentTextsGroupCommand::AlignmentTextsGroupCommand | ( | ElementTextItemGroup * | group, |
| Qt::Alignment | new_alignment, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
AlignmentTextsGroupCommand::AlignmentTextsGroupCommand.
| group | : Group to change the alignment |
| new_alignment | : the new alignment of the group |
| parent | : the parent QUndoCommand of this undo |
Definition at line 316 of file addelementtextcommand.cpp.
References m_previous_alignment, m_texts_pos, ElementTextItemGroup::texts(), and QET::Icons::tr.
|
override |
AlignmentTextsGroupCommand::~AlignmentTextsGroupCommand Destructor.
Definition at line 338 of file addelementtextcommand.cpp.
|
inlineoverride |
Definition at line 126 of file addelementtextcommand.h.
|
override |
AlignmentTextsGroupCommand::mergeWith Try to merge this command with other command.
| other |
Definition at line 347 of file addelementtextcommand.cpp.
References m_group, m_new_alignment, and undo().
|
override |
AlignmentTextsGroupCommand::redo.
Definition at line 384 of file addelementtextcommand.cpp.
References m_group, and m_new_alignment.
|
override |
AlignmentTextsGroupCommand::undo.
Definition at line 363 of file addelementtextcommand.cpp.
References m_group, m_previous_alignment, and m_texts_pos.
Referenced by mergeWith().
|
private |
Definition at line 132 of file addelementtextcommand.h.
Referenced by mergeWith(), redo(), and undo().
|
private |
Definition at line 133 of file addelementtextcommand.h.
Referenced by mergeWith(), and redo().
|
private |
Definition at line 133 of file addelementtextcommand.h.
Referenced by AlignmentTextsGroupCommand(), and undo().
|
private |
Definition at line 135 of file addelementtextcommand.h.
Referenced by AlignmentTextsGroupCommand(), and undo().
1.8.15