integrating chattools in mainwindow chat

This commit is contained in:
doitux
2007-10-12 18:45:28 +00:00
parent 13e32d0656
commit bb9677835a
6 changed files with 25 additions and 18 deletions
+3 -4
View File
@@ -28,10 +28,8 @@ using namespace std;
Chat::Chat(mainWindowImpl* w, ConfigFile *c) : myW(w), myConfig(c)
{
myW->setChat(this);
myChatTools = new ChatTools(myW->lineEdit_ChatInput);
connect(this, SIGNAL(signalChatMessage(QString, QString)), this, SLOT(receiveMessage(QString, QString)));
}
Chat::~Chat()
@@ -41,7 +39,8 @@ Chat::~Chat()
}
void Chat::sendMessage() {
fillChatLinesHistory(myW->lineEdit_ChatInput->text());
myW->getSession().sendChatMessage(myW->lineEdit_ChatInput->text().toUtf8().constData());
myW->lineEdit_ChatInput->setText("");
}