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::SetEndPointCommand Class Reference
+ Inheritance diagram for qdesigner_internal::SetEndPointCommand:
+ Collaboration diagram for qdesigner_internal::SetEndPointCommand:

Public Member Functions

 SetEndPointCommand (ConnectionEdit *edit, Connection *con, EndPoint::Type type, QObject *object)
 
void redo () override
 Applies a change to the document.
 
void undo () override
 Reverts a change to the document.
 
 SetEndPointCommand (ConnectionEdit *edit, Connection *con, EndPoint::Type type, QObject *object)
 
void redo () override
 Applies a change to the document.
 
void undo () override
 Reverts a change to the document.
 
- Public Member Functions inherited from qdesigner_internal::CECommand
 CECommand (ConnectionEdit *edit)
 
bool mergeWith (const QUndoCommand *) override
 Attempts to merge this command with command.
 
ConnectionEditedit () const
 
- 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.
 
int childCount () const
 
const QUndoCommandchild (int index) const
 

Additional Inherited Members

- Public Types inherited from qdesigner_internal::CETypes
enum  LineDir { UpDir = 0 , DownDir , RightDir , LeftDir }
 
using ConnectionList = QList<Connection *>
 
using ConnectionSet = QHash<Connection*, Connection*>
 
using WidgetSet = QHash<QWidget*, QWidget*>
 

Detailed Description

Definition at line 209 of file connectionedit.cpp.

Constructor & Destructor Documentation

◆ SetEndPointCommand() [1/2]

qdesigner_internal::SetEndPointCommand::SetEndPointCommand ( ConnectionEdit * edit,
Connection * con,
EndPoint::Type type,
QObject * object )

Definition at line 223 of file connectionedit.cpp.

References SetEndPointCommand().

Referenced by SetEndPointCommand().

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

◆ SetEndPointCommand() [2/2]

qdesigner_internal::SetEndPointCommand::SetEndPointCommand ( ConnectionEdit * edit,
Connection * con,
EndPoint::Type type,
QObject * object )

Member Function Documentation

◆ redo() [1/2]

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

See also
undo()

Reimplemented from QUndoCommand.

Definition at line 242 of file connectionedit.cpp.

◆ redo() [2/2]

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

See also
undo()

Reimplemented from QUndoCommand.

◆ undo() [1/2]

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

See also
redo()

Reimplemented from QUndoCommand.

Definition at line 248 of file connectionedit.cpp.

◆ undo() [2/2]

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

See also
redo()

Reimplemented from QUndoCommand.


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