projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33d1a8a
)
Send text on shift+return in SingleLine mode
author
Sebastian Goth
<seezer@roath.org>
Sat, 26 Sep 2009 21:01:31 +0000
(23:01 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 28 Sep 2009 13:53:13 +0000
(15:53 +0200)
Accept shift+return as normal return KeyEvent if a multilineedit
is in SingleLine mode.
src/uisupport/multilineedit.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/multilineedit.cpp
b/src/uisupport/multilineedit.cpp
index
f4a0b95
..
9029f02
100644
(file)
--- a/
src/uisupport/multilineedit.cpp
+++ b/
src/uisupport/multilineedit.cpp
@@
-231,8
+231,11
@@
void MultiLineEdit::keyPressEvent(QKeyEvent *event) {
# endif
#endif
- if(_mode == SingleLine)
+ if(_mode == SingleLine) {
+ event->accept();
+ on_returnPressed();
return;
+ }
#ifdef HAVE_KDE
KTextEdit::keyPressEvent(event);
#else