1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

removed unused code

This commit is contained in:
agilob 2015-01-26 00:27:22 +00:00
parent fe8f6593c7
commit d3cdebd46f
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997

View File

@ -16,7 +16,6 @@
#include "chattextedit.h"
#include <QKeyEvent>
#include <QDebug>
ChatTextEdit::ChatTextEdit(QWidget *parent) :
QTextEdit(parent)
@ -33,10 +32,7 @@ void ChatTextEdit::keyPressEvent(QKeyEvent * event)
else if (key == Qt::Key_Tab)
emit tabPressed();
else if (key == Qt::Key_Up && this->toPlainText().isEmpty())
{
this->setText(lastMessage);
this->setFocus();
}
else if (key == Qt::Key_Up && !this->toPlainText().isEmpty())
{
currentMessage = this->toPlainText();