X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Finputline.cpp;h=f6d7171580ea9ca6435003a1c6d896fe8cfd6414;hp=535b3c279d350e4341c808e023a6baf26d7e6fce;hb=8699dd758516d0ded076811e8ea656adc95e69d0;hpb=5df99c1ab83baf3a6caef7e49177f84bd48d127e diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index 535b3c27..f6d71715 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005/06 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -47,6 +47,9 @@ void InputLine::keyPressEvent(QKeyEvent * event) { if(idx < history.count()) setText(history[idx]); else setText(""); event->accept(); + } else if(event->key() == Qt::Key_Select) { // for Qtopia + emit returnPressed(); + QLineEdit::keyPressEvent(event); } else { QLineEdit::keyPressEvent(event); } @@ -55,7 +58,7 @@ void InputLine::keyPressEvent(QKeyEvent * event) { bool InputLine::event(QEvent *e) { if(e->type() == QEvent::KeyPress) { - keyPressEvent(dynamic_cast(e)); + keyPressEvent(static_cast(e)); return true; } return QLineEdit::event(e);