projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05085cc
)
Move cursor to end of line when browsing history (KTextEdit).
author
Sebastian Goth
<seezer@roath.org>
Thu, 9 Apr 2009 17:26:40 +0000
(19:26 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 10 Apr 2009 19:38:33 +0000
(21:38 +0200)
src/uisupport/inputline.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/inputline.cpp
b/src/uisupport/inputline.cpp
index
f9c8a65
..
03087fb
100644
(file)
--- 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]);
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
}
}