Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdesigner_internal::BreakButtonGroupCommand Class Reference
+ Inheritance diagram for qdesigner_internal::BreakButtonGroupCommand:
+ Collaboration diagram for qdesigner_internal::BreakButtonGroupCommand:

Public Member Functions

 BreakButtonGroupCommand (QDesignerFormWindowInterface *formWindow)
 
bool init (QButtonGroup *group)
 
void undo () override
 Reverts a change to the document.
 
void redo () override
 Applies a change to the document.
 
 BreakButtonGroupCommand (QDesignerFormWindowInterface *formWindow)
 
bool init (QButtonGroup *group)
 
void undo () override
 Reverts a change to the document.
 
void redo () override
 Applies a change to the document.
 
- Public Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
 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.
 
- Public Member Functions inherited from QUndoCommand
 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 QUndoCommandchild (int index) const
 

Additional Inherited Members

- Static Public Member Functions inherited from qdesigner_internal::ButtonGroupCommand
static QString nameList (const ButtonList &bl)
 
static ButtonGroupList managedButtonGroups (const QDesignerFormWindowInterface *formWindow)
 
static QString nameList (const ButtonList &bl)
 
static ButtonGroupList managedButtonGroups (const QDesignerFormWindowInterface *formWindow)
 
- Static Public Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
static void updateBuddies (QDesignerFormWindowInterface *form, const QString &old_name, const QString &new_name)
 
- Protected Member Functions inherited from qdesigner_internal::ButtonGroupCommand
 ButtonGroupCommand (const QString &description, QDesignerFormWindowInterface *formWindow)
 
void initialize (const ButtonList &bl, QButtonGroup *buttonGroup)
 
void addButtonsToGroup ()
 
void removeButtonsFromGroup ()
 
void createButtonGroup ()
 
void breakButtonGroup ()
 
 ButtonGroupCommand (const QString &description, QDesignerFormWindowInterface *formWindow)
 
void initialize (const ButtonList &bl, QButtonGroup *buttonGroup)
 
void addButtonsToGroup ()
 
void removeButtonsFromGroup ()
 
void createButtonGroup ()
 
void breakButtonGroup ()
 
- Protected Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
QDesignerFormWindowInterfaceformWindow () const
 
QDesignerFormEditorInterfacecore () const
 
QDesignerPropertySheetExtensionpropertySheet (QObject *object) const
 
void cheapUpdate ()
 
void selectUnmanagedObject (QObject *unmanagedObject)
 

Detailed Description

Definition at line 200 of file button_taskmenu.cpp.

Constructor & Destructor Documentation

◆ BreakButtonGroupCommand() [1/2]

qdesigner_internal::BreakButtonGroupCommand::BreakButtonGroupCommand ( QDesignerFormWindowInterface * formWindow)

Definition at line 209 of file button_taskmenu.cpp.

References BreakButtonGroupCommand().

Referenced by BreakButtonGroupCommand(), and qdesigner_internal::createRemoveButtonsCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BreakButtonGroupCommand() [2/2]

qdesigner_internal::BreakButtonGroupCommand::BreakButtonGroupCommand ( QDesignerFormWindowInterface * formWindow)

Member Function Documentation

◆ init() [1/2]

bool qdesigner_internal::BreakButtonGroupCommand::init ( QButtonGroup * group)

Definition at line 214 of file button_taskmenu.cpp.

◆ init() [2/2]

bool qdesigner_internal::BreakButtonGroupCommand::init ( QButtonGroup * group)

◆ redo() [1/2]

void qdesigner_internal::BreakButtonGroupCommand::redo ( )
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.

See also
undo()

Reimplemented from QUndoCommand.

Definition at line 206 of file button_taskmenu.cpp.

References qdesigner_internal::ButtonGroupCommand::breakButtonGroup().

+ Here is the call graph for this function:

◆ redo() [2/2]

void qdesigner_internal::BreakButtonGroupCommand::redo ( )
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.

See also
undo()

Reimplemented from QUndoCommand.

Definition at line 206 of file button_taskmenu.cpp.

◆ undo() [1/2]

void qdesigner_internal::BreakButtonGroupCommand::undo ( )
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.

See also
redo()

Reimplemented from QUndoCommand.

Definition at line 205 of file button_taskmenu.cpp.

References qdesigner_internal::ButtonGroupCommand::createButtonGroup().

+ Here is the call graph for this function:

◆ undo() [2/2]

void qdesigner_internal::BreakButtonGroupCommand::undo ( )
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.

See also
redo()

Reimplemented from QUndoCommand.

Definition at line 205 of file button_taskmenu.cpp.


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