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

#include <qdesigner_formeditorcommand_p.h>

+ Inheritance diagram for qdesigner_internal::QDesignerFormEditorCommand:
+ Collaboration diagram for qdesigner_internal::QDesignerFormEditorCommand:

Public Member Functions

 QDesignerFormEditorCommand (const QString &description, QDesignerFormEditorInterface *core)
 
- 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.
 
virtual void undo ()
 Reverts a change to the document.
 
virtual void redo ()
 Applies a change to the document.
 
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

QDesignerFormEditorInterfacecore () const
 

Detailed Description

Definition at line 31 of file qdesigner_formeditorcommand_p.h.

Constructor & Destructor Documentation

◆ QDesignerFormEditorCommand()

qdesigner_internal::QDesignerFormEditorCommand::QDesignerFormEditorCommand ( const QString & description,
QDesignerFormEditorInterface * core )

Definition at line 13 of file qdesigner_formeditorcommand.cpp.

Member Function Documentation

◆ core()

QDesignerFormEditorInterface * qdesigner_internal::QDesignerFormEditorCommand::core ( ) const
protected

Definition at line 19 of file qdesigner_formeditorcommand.cpp.


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