fakevim: fix undo() behaviour

This is the finalization of the change started with 3c0ca8c188.
Fakevim undo was broken due to behavioural changes in QTextDocument
in Qt 4.6. Now that QTextDocument has gotten new accessors to the
needed (and previously available) data we can use it.
This commit is contained in:
hjk
2009-11-03 14:10:45 +01:00
parent 8a5540292d
commit 0bc1095b70

View File

@@ -79,9 +79,9 @@
#include <climits>
// FIXME: Restrict this as soon the availableUndoSteps has been merged to Qt
//#if QT_VERSION < 0x040600
#if QT_VERSION < 0x040600
#define availableUndoSteps revision
//#endif
#endif
//#define DEBUG_KEY 1
#if DEBUG_KEY