QTfrontend/chatwidget.cpp
changeset 1360 d3e285281c26
parent 1357 5b9012dd4a05
child 1391 735f6d43780b
equal deleted inserted replaced
1359:c7703c653865 1360:d3e285281c26
    53 {
    53 {
    54   emit chatLine(chatEditLine->text());
    54   emit chatLine(chatEditLine->text());
    55   chatEditLine->clear();
    55   chatEditLine->clear();
    56 }
    56 }
    57 
    57 
    58 void HWChatWidget::onChatStringFromNet(const QString& str)
    58 void HWChatWidget::onChatString(const QString& str)
    59 {
    59 {
    60   QListWidget* w = chatText;
    60   QListWidget* w = chatText;
    61   w->addItem(str);
    61   w->addItem(str);
    62   w->scrollToBottom();
    62   w->scrollToBottom();
    63   w->setSelectionMode(QAbstractItemView::NoSelection);
    63   w->setSelectionMode(QAbstractItemView::NoSelection);