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::MenuActionCommand Class Reference

#include <qdesigner_command_p.h>

+ Inheritance diagram for qdesigner_internal::MenuActionCommand:
+ Collaboration diagram for qdesigner_internal::MenuActionCommand:

Public Member Functions

void init (QAction *action, QAction *actionBefore, QWidget *associatedWidget, QWidget *objectToSelect)
 
- 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
 

Protected Member Functions

 MenuActionCommand (const QString &text, QDesignerFormWindowInterface *formWindow)
 
void insertMenu ()
 
void removeMenu ()
 
- Protected Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
QDesignerFormWindowInterfaceformWindow () const
 
QDesignerFormEditorInterfacecore () const
 
QDesignerPropertySheetExtensionpropertySheet (QObject *object) const
 
void cheapUpdate ()
 
void selectUnmanagedObject (QObject *unmanagedObject)
 

Additional Inherited Members

- Static Public Member Functions inherited from qdesigner_internal::QDesignerFormWindowCommand
static void updateBuddies (QDesignerFormWindowInterface *form, const QString &old_name, const QString &new_name)
 

Detailed Description

Definition at line 1060 of file qdesigner_command_p.h.

Constructor & Destructor Documentation

◆ MenuActionCommand()

qdesigner_internal::MenuActionCommand::MenuActionCommand ( const QString & text,
QDesignerFormWindowInterface * formWindow )
protected

Definition at line 2737 of file qdesigner_command.cpp.

Member Function Documentation

◆ init()

void qdesigner_internal::MenuActionCommand::init ( QAction * action,
QAction * actionBefore,
QWidget * associatedWidget,
QWidget * objectToSelect )

Definition at line 2747 of file qdesigner_command.cpp.

◆ insertMenu()

void qdesigner_internal::MenuActionCommand::insertMenu ( )
protected

Definition at line 2759 of file qdesigner_command.cpp.

Referenced by qdesigner_internal::AddMenuActionCommand::redo(), and qdesigner_internal::RemoveMenuActionCommand::undo().

+ Here is the caller graph for this function:

◆ removeMenu()

void qdesigner_internal::MenuActionCommand::removeMenu ( )
protected

Definition at line 2771 of file qdesigner_command.cpp.

Referenced by qdesigner_internal::RemoveMenuActionCommand::redo(), and qdesigner_internal::AddMenuActionCommand::undo().

+ Here is the caller graph for this function:

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