src/gui/text/qtextdocument.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
--- a/src/gui/text/qtextdocument.h	Mon Jun 21 22:38:13 2010 +0100
+++ b/src/gui/text/qtextdocument.h	Thu Jul 22 16:41:55 2010 +0100
@@ -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);