Move cursor to end of line when browsing history (KTextEdit).
authorSebastian Goth <seezer@roath.org>
Thu, 9 Apr 2009 17:26:40 +0000 (19:26 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 10 Apr 2009 19:38:33 +0000 (21:38 +0200)
src/uisupport/inputline.cpp

index f9c8a65..03087fb 100644 (file)
@@ -241,4 +241,9 @@ void InputLine::resetLine() {
 void InputLine::showHistoryEntry() {
   // if the user changed the history, display the changed line
   tempHistory.contains(idx) ? setText(tempHistory[idx]) : setText(history[idx]);
 void InputLine::showHistoryEntry() {
   // if the user changed the history, display the changed line
   tempHistory.contains(idx) ? setText(tempHistory[idx]) : setText(history[idx]);
+#ifdef HAVE_KDE
+  QTextCursor cursor = textCursor();
+  cursor.movePosition(QTextCursor::End);
+  setTextCursor(cursor);
+#endif
 }
 }