Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > cb5cb393fb2cff46997de4bce8173fc9 > files > 35

qt3-3.3.4-23.2.20060mdk.src.rpm

--- qt-x11-free-3.1.2/src/widgets/qtextedit.cpp--	2003-04-16 17:41:29.000000000 +0200
+++ qt-x11-free-3.1.2/src/widgets/qtextedit.cpp	2003-04-16 17:51:49.000000000 +0200
@@ -3095,6 +3095,8 @@ void QTextEdit::undo()
 	drawCursor( TRUE );
 	repaintContents( TRUE );
     }
+    emit redoAvailable( isRedoAvailable() );
+    emit undoAvailable( isUndoAvailable() );
 
     emit textChanged();
 }
@@ -3134,6 +3136,8 @@ void QTextEdit::redo()
     drawCursor( TRUE );
     updateMicroFocusHint();
     setModified();
+    emit redoAvailable( isRedoAvailable() );
+    emit undoAvailable( isUndoAvailable() );
     emit textChanged();
 }
 
@@ -5093,7 +5097,7 @@ int QTextEdit::wrapColumnOrWidth() const
     This enum defines where text can be wrapped in word wrap mode.
 
     \value AtWhiteSpace Don't use this deprecated value (it is a
-    synonym for \c AtWordBoundary which you should use instead).  
+    synonym for \c AtWordBoundary which you should use instead).
     \value Anywhere  Break anywhere, including within words.
     \value AtWordBoundary Break lines at word boundaries, e.g. spaces or
     newlines