chatinputtext.cpp
332 Bytes
#include "chatinputtext.h"
#include <QTextCodec>
chatInputText::chatInputText(QWidget *parent) :
QTextEdit(parent)
{
}
void chatInputText::keyPressEvent(QKeyEvent *ke)
{
if(ke->key() == Qt::Key_Return || ke->key() == Qt::Key_Enter)
{
emit msgReady();
return;
}
QTextEdit::keyPressEvent(ke);
}