Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QUndoCommand::undo (  )  [virtual]

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:

Definition at line 264 of file qundostack.cpp.

    for (int i = d->child_list.size() - 1; i >= 0; --i)

Generated by  Doxygen 1.6.0   Back to index