diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-09 13:30:08 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-09 13:53:37 (GMT) |
commit | 54290ef776a311f0c303e2a8df4de5e39e9a032a (patch) | |
tree | e7131c2f90e6d9a121a656671e4e6e6a07efb889 /src/gui/text/qtextdocument.h | |
parent | 4710521ab62540378816d3888936eace9686ff97 (diff) | |
download | Qt-54290ef776a311f0c303e2a8df4de5e39e9a032a.zip Qt-54290ef776a311f0c303e2a8df4de5e39e9a032a.tar.gz Qt-54290ef776a311f0c303e2a8df4de5e39e9a032a.tar.bz2 |
Added method to clear the undo/redo stacks.
Reviewed-by: mae
Diffstat (limited to 'src/gui/text/qtextdocument.h')
-rw-r--r-- | src/gui/text/qtextdocument.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/text/qtextdocument.h b/src/gui/text/qtextdocument.h index b5bcb41..0140772 100644 --- a/src/gui/text/qtextdocument.h +++ b/src/gui/text/qtextdocument.h @@ -256,6 +256,13 @@ public: void undo(QTextCursor *cursor); void redo(QTextCursor *cursor); + enum Stacks { + UndoStack = 0x01, + RedoStack = 0x02, + UndoAndRedoStacks = UndoStack | RedoStack + }; + void clearUndoRedoStacks(Stacks historyToClear = UndoAndRedoStacks); + int maximumBlockCount() const; void setMaximumBlockCount(int maximum); |