From: Sebastian Goth Date: Thu, 9 Apr 2009 17:26:40 +0000 (+0200) Subject: Move cursor to end of line when browsing history (KTextEdit). X-Git-Tag: 0.5-rc1~229 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=758d3568fe1a9cd08bd6c62c87ac3ac2c48f2f4d;ds=inline Move cursor to end of line when browsing history (KTextEdit). --- diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index f9c8a651..03087fb6 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -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]); +#ifdef HAVE_KDE + QTextCursor cursor = textCursor(); + cursor.movePosition(QTextCursor::End); + setTextCursor(cursor); +#endif }