Browse Source

removed unused code

pull/1048/head
agilob 11 years ago
parent
commit
d3cdebd46f
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997
  1. 4
      src/widget/tool/chattextedit.cpp

4
src/widget/tool/chattextedit.cpp

@ -16,7 +16,6 @@ @@ -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) @@ -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…
Cancel
Save