Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <connectionedit_p.h>
Public Member Functions | |
CECommand (ConnectionEdit *edit) | |
bool | mergeWith (const QUndoCommand *) override |
Attempts to merge this command with command. | |
ConnectionEdit * | edit () 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. | |
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. | |
int | childCount () const |
const QUndoCommand * | child (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*> |
Definition at line 247 of file connectionedit_p.h.
|
inlineexplicit |
Definition at line 250 of file connectionedit_p.h.
|
inline |
Definition at line 255 of file connectionedit_p.h.
|
inlineoverridevirtual |
Attempts to merge this command with command.
Returns true
on success; otherwise returns false
.
If this function returns true
, calling this command's redo() must have the same effect as redoing both this command and command. Similarly, calling this command's undo() must have the same effect as undoing command and this command.
QUndoStack will only try to merge two commands if they have the same id, and the id is not -1.
The default implementation returns false
.
Reimplemented from QUndoCommand.
Definition at line 253 of file connectionedit_p.h.