QTfrontend/chatwidget.cpp
changeset 1356 77ab8735401d
parent 1316 50514e45d0b5
child 1357 5b9012dd4a05
--- a/QTfrontend/chatwidget.cpp	Wed Oct 15 11:54:06 2008 +0000
+++ b/QTfrontend/chatwidget.cpp	Wed Oct 15 15:02:39 2008 +0000
@@ -55,11 +55,10 @@
   chatEditLine->clear();
 }
 
-void HWChatWidget::onChatStringFromNet(const QStringList& str)
+void HWChatWidget::onChatStringFromNet(const QString& str)
 {
   if (str.size() < 2) return;
   QListWidget* w = chatText;
-  w->addItem(str[0]+": "+str[1]);
   w->scrollToBottom();
   w->setSelectionMode(QAbstractItemView::NoSelection);
 }
@@ -67,8 +66,6 @@
 void HWChatWidget::nickAdded(const QString& nick)
 {
   chatNicks->addItem(nick);
-  chatText->addItem(QString(tr("* %1 joined")).arg(nick));
-  chatText->scrollToBottom();
 }
 
 void HWChatWidget::nickRemoved(const QString& nick)
@@ -78,8 +75,6 @@
     chatNicks->takeItem(chatNicks->row(*it));
     ++it;
   }
-  chatText->addItem(QString(tr("* %1 left")).arg(nick));
-  chatText->scrollToBottom();
 }
 
 void HWChatWidget::clear()