![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qdesigner_propertycommand_p.h>
Classes | |
| struct | PropertyDescription |
Public Member Functions | |
| PropertyListCommand (QDesignerFormWindowInterface *formWindow, QUndoCommand *parent=nullptr) | |
| QObject * | object (int indexindex=0) const |
| QVariant | oldValue (int indexindex=0) const |
| void | setOldValue (const QVariant &oldValue, int indexindex=0) |
| void | undo () override |
| Reverts 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 QUndoCommand * | child (int indexindex) const |
Protected Types | |
| using | PropertyHelperPtr = std::unique_ptr<PropertyHelper> |
| using | PropertyHelperList = std::vector<PropertyHelperPtr> |
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) |
Definition at line 116 of file qdesigner_propertycommand_p.h.
|
protected |
Definition at line 131 of file qdesigner_propertycommand_p.h.
|
protected |
Definition at line 130 of file qdesigner_propertycommand_p.h.
|
explicit |
Definition at line 942 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 959 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 1171 of file qdesigner_propertycommand.cpp.
|
protectedvirtual |
Reimplemented in qdesigner_internal::ArrowKeyPropertyCommand, and qdesigner_internal::ArrowKeyPropertyCommand.
Definition at line 989 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 996 of file qdesigner_propertycommand.cpp.
| QObject * qdesigner_internal::PropertyListCommand::object | ( | int | index = 0 | ) | const |
Definition at line 1014 of file qdesigner_propertycommand.cpp.
| QVariant qdesigner_internal::PropertyListCommand::oldValue | ( | int | index = 0 | ) | const |
Definition at line 1020 of file qdesigner_propertycommand.cpp.
|
inlineprotected |
Definition at line 173 of file qdesigner_propertycommand_p.h.
|
inlineprotected |
Definition at line 153 of file qdesigner_propertycommand_p.h.
|
inlineprotected |
Definition at line 154 of file qdesigner_propertycommand_p.h.
|
protected |
Definition at line 948 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 1131 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 1121 of file qdesigner_propertycommand.cpp.
| void qdesigner_internal::PropertyListCommand::setOldValue | ( | const QVariant & | oldValue, |
| int | index = 0 ) |
Definition at line 1026 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 1109 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 953 of file qdesigner_propertycommand.cpp.
|
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.
Reimplemented from QUndoCommand.
Definition at line 1162 of file qdesigner_propertycommand.cpp.
|
protected |
Definition at line 1142 of file qdesigner_propertycommand.cpp.