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:
parent
fe8f6593c7
commit
d3cdebd46f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user