![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
AdjustConnectionCommand (ConnectionEdit *edit, Connection *con, const QPoint &old_source_pos, const QPoint &old_target_pos, const QPoint &new_source_pos, const QPoint &new_target_pos) | |
void | redo () override |
Applies a change to the document. | |
void | undo () override |
Reverts a change to the document. | |
AdjustConnectionCommand (ConnectionEdit *edit, Connection *con, const QPoint &old_source_pos, const QPoint &old_target_pos, const QPoint &new_source_pos, const QPoint &new_target_pos) | |
void | redo () override |
Applies a change to the document. | |
void | undo () override |
Reverts a change to the document. | |
![]() | |
CECommand (ConnectionEdit *edit) | |
bool | mergeWith (const QUndoCommand *) override |
Attempts to merge this command with command. | |
ConnectionEdit * | edit () const |
![]() | |
QUndoCommand (QUndoCommand *parent=nullptr) | |
Constructs a QUndoCommand object with parent parent. | |
QUndoCommand (const QString &text, QUndoCommand *parent=nullptr) | |
Constructs a QUndoCommand object with the given parent and text. | |
virtual | ~QUndoCommand () |
Destroys the QUndoCommand object and all child commands. | |
QString | text () const |
Returns a short text string describing what this command does; for example, "insert text". | |
QString | actionText () const |
void | setText (const QString &text) |
Sets the command's text to be the text specified. | |
bool | isObsolete () const |
void | setObsolete (bool obsolete) |
virtual int | id () const |
Returns the ID of this command. | |
int | childCount () const |
const QUndoCommand * | child (int index) const |
Additional Inherited Members | |
![]() | |
enum | LineDir { UpDir = 0 , DownDir , RightDir , LeftDir } |
using | ConnectionList = QList<Connection *> |
using | ConnectionSet = QHash<Connection*, Connection*> |
using | WidgetSet = QHash<QWidget*, QWidget*> |
Definition at line 129 of file connectionedit.cpp.
qdesigner_internal::AdjustConnectionCommand::AdjustConnectionCommand | ( | ConnectionEdit * | edit, |
Connection * | con, | ||
const QPoint & | old_source_pos, | ||
const QPoint & | old_target_pos, | ||
const QPoint & | new_source_pos, | ||
const QPoint & | new_target_pos ) |
Definition at line 147 of file connectionedit.cpp.
References AdjustConnectionCommand().
Referenced by AdjustConnectionCommand().
qdesigner_internal::AdjustConnectionCommand::AdjustConnectionCommand | ( | ConnectionEdit * | edit, |
Connection * | con, | ||
const QPoint & | old_source_pos, | ||
const QPoint & | old_target_pos, | ||
const QPoint & | new_source_pos, | ||
const QPoint & | new_target_pos ) |
|
overridevirtual |
Applies a change to the document.
This function must be implemented in the derived class. Calling QUndoStack::push(), QUndoStack::undo() or QUndoStack::redo() from this function leads to undefined beahavior.
The default implementation calls redo() on all child commands.
Reimplemented from QUndoCommand.
Definition at line 168 of file connectionedit.cpp.
|
overridevirtual |
Applies a change to the document.
This function must be implemented in the derived class. Calling QUndoStack::push(), QUndoStack::undo() or QUndoStack::redo() from this function leads to undefined beahavior.
The default implementation calls redo() on all child commands.
Reimplemented from QUndoCommand.
|
overridevirtual |
Reverts a change to the document.
After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling QUndoStack::push(), QUndoStack::undo() or QUndoStack::redo() from this function leads to undefined beahavior.
The default implementation calls undo() on all child commands in reverse order.
Reimplemented from QUndoCommand.
Definition at line 162 of file connectionedit.cpp.
|
overridevirtual |
Reverts a change to the document.
After undo() is called, the state of the document should be the same as before redo() was called. This function must be implemented in the derived class. Calling QUndoStack::push(), QUndoStack::undo() or QUndoStack::redo() from this function leads to undefined beahavior.
The default implementation calls undo() on all child commands in reverse order.
Reimplemented from QUndoCommand.