equal
deleted
inserted
replaced
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); |