OSDN Git Service

fakevim: fix undo() behaviour
authorhjk <qtc-committer@nokia.com>
Tue, 3 Nov 2009 13:10:45 +0000 (14:10 +0100)
committercon <qtc-committer@nokia.com>
Tue, 3 Nov 2009 17:06:14 +0000 (18:06 +0100)
This is the finalization of the change started with 3c0ca8c18881.
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.
(cherry picked from commit 0bc1095b70bf698e43e5a5a74a06027aa2ece2e3)

src/plugins/fakevim/fakevimhandler.cpp

index 8d99049..e56682d 100644 (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