Ensure cursor is visible after text changes in MultiLineEdit
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 12 Sep 2009 07:17:16 +0000 (09:17 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 12 Sep 2009 07:17:16 +0000 (09:17 +0200)
Fixes #783.

src/uisupport/multilineedit.cpp

index 699d4ec..1f9515e 100644 (file)
@@ -358,6 +358,7 @@ void MultiLineEdit::on_textChanged() {
     on_documentHeightChanged(_lastDocumentHeight);
   }
   updateSizeHint();
     on_documentHeightChanged(_lastDocumentHeight);
   }
   updateSizeHint();
+  ensureCursorVisible();
 }
 
 void MultiLineEdit::on_documentHeightChanged(qreal) {
 }
 
 void MultiLineEdit::on_documentHeightChanged(qreal) {