Definition at line 90 of file qundostack.h.
#include <qundostack.h>

Public Slots |
|
| void | setClean () |
| void | setIndex (int idx) |
| void | undo () |
| void | redo () |
| void | setActive (bool active=true) |
Signals |
|
| void | indexChanged (int idx) |
| void | cleanChanged (bool clean) |
| void | canUndoChanged (bool canUndo) |
| void | canRedoChanged (bool canRedo) |
| void | undoTextChanged (const QString &undoText) |
| void | redoTextChanged (const QString &redoText) |
Public Member Functions |
|
| QUndoStack (QObject *parent=0) | |
| ~QUndoStack () | |
| void | clear () |
| void | push (QUndoCommand *cmd) |
| bool | canUndo () const |
| bool | canRedo () const |
| QString | undoText () const |
| QString | redoText () const |
| int | count () const |
| int | index () const |
| QString | text (int idx) const |
| QAction * | createUndoAction (QObject *parent, const QString &prefix=QString()) const |
| QAction * | createRedoAction (QObject *parent, const QString &prefix=QString()) const |
| bool | isActive () const |
| bool | isClean () const |
| int | cleanIndex () const |
| void | beginMacro (const QString &text) |
| void | endMacro () |
| void | setUndoLimit (int limit) |
| int | undoLimit () const |
| const QUndoCommand * | command (int index) const |
Properties |
|
| bool | active |
| int | undoLimit |
Friends |
|
| class | QUndoGroup |
| QUndoStack | ( | QObject * | parent = 0 |
) | [explicit] |
| ~QUndoStack | ( | ) |
| void clear | ( | ) |
| void push | ( | QUndoCommand * | cmd | ) |
| bool canUndo | ( | ) | const |
| bool canRedo | ( | ) | const |
| QString undoText | ( | ) | const |
| QString redoText | ( | ) | const |
| int count | ( | ) | const |
| int index | ( | ) | const |
| QString text | ( | int | idx | ) | const |
| bool isActive | ( | ) | const |
| bool isClean | ( | ) | const |
| int cleanIndex | ( | ) | const |
| void beginMacro | ( | const QString & | text | ) |
| void endMacro | ( | ) |
| void setUndoLimit | ( | int | limit | ) |
| int undoLimit | ( | ) | const |
| const QUndoCommand* command | ( | int | index | ) | const |
| void setClean | ( | ) | [slot] |
| void setIndex | ( | int | idx | ) | [slot] |
| void undo | ( | ) | [slot] |
| void redo | ( | ) | [slot] |
| void setActive | ( | bool | active = true |
) | [slot] |
| void indexChanged | ( | int | idx | ) | [signal] |
| void cleanChanged | ( | bool | clean | ) | [signal] |
| void canUndoChanged | ( | bool | canUndo | ) | [signal] |
| void canRedoChanged | ( | bool | canRedo | ) | [signal] |
| void undoTextChanged | ( | const QString & | undoText | ) | [signal] |
| void redoTextChanged | ( | const QString & | redoText | ) | [signal] |
friend class QUndoGroup [friend] |
Definition at line 149 of file qundostack.h.
bool active [read, write] |
Definition at line 94 of file qundostack.h.
int undoLimit [read, write] |
Definition at line 95 of file qundostack.h.