src/gui/text/qtextdocument.h
changeset 30 5dc02b23752f
parent 18 2f34d5167611
--- a/src/gui/text/qtextdocument.h	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/gui/text/qtextdocument.h	Tue Jul 06 15:10:48 2010 +0300
@@ -256,6 +256,13 @@
     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);