![]() |
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 | |
AddButtonsToGroupCommand (QDesignerFormWindowInterface *formWindow) | |
void | init (const ButtonList &bl, QButtonGroup *group) |
void | undo () override |
Reverts a change to the document. | |
void | redo () override |
Applies a change to the document. | |
AddButtonsToGroupCommand (QDesignerFormWindowInterface *formWindow) | |
void | init (const ButtonList &bl, QButtonGroup *group) |
void | undo () override |
Reverts a change to the document. | |
void | redo () override |
Applies a change to the document. | |
![]() | |
QDesignerFormWindowCommand (const QString &description, QDesignerFormWindowInterface *formWindow, QUndoCommand *parent=nullptr) | |
void | undo () override |
Reverts a change to the document. | |
void | redo () override |
Applies a change to the document. | |
![]() | |
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. | |
virtual bool | mergeWith (const QUndoCommand *other) |
Attempts to merge this command with command. | |
int | childCount () const |
const QUndoCommand * | child (int index) const |
Definition at line 226 of file button_taskmenu.cpp.
qdesigner_internal::AddButtonsToGroupCommand::AddButtonsToGroupCommand | ( | QDesignerFormWindowInterface * | formWindow | ) |
Definition at line 235 of file button_taskmenu.cpp.
References AddButtonsToGroupCommand().
Referenced by AddButtonsToGroupCommand().
qdesigner_internal::AddButtonsToGroupCommand::AddButtonsToGroupCommand | ( | QDesignerFormWindowInterface * | formWindow | ) |
void qdesigner_internal::AddButtonsToGroupCommand::init | ( | const ButtonList & | bl, |
QButtonGroup * | group ) |
Definition at line 240 of file button_taskmenu.cpp.
void qdesigner_internal::AddButtonsToGroupCommand::init | ( | const ButtonList & | bl, |
QButtonGroup * | group ) |
|
inlineoverridevirtual |
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 232 of file button_taskmenu.cpp.
References qdesigner_internal::ButtonGroupCommand::addButtonsToGroup().
|
inlineoverridevirtual |
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 232 of file button_taskmenu.cpp.
|
inlineoverridevirtual |
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 231 of file button_taskmenu.cpp.
References qdesigner_internal::ButtonGroupCommand::removeButtonsFromGroup().
|
inlineoverridevirtual |
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 231 of file button_taskmenu.cpp.