equal
deleted
inserted
replaced
55 chatEditLine->clear(); |
55 chatEditLine->clear(); |
56 } |
56 } |
57 |
57 |
58 void HWChatWidget::onChatStringFromNet(const QString& str) |
58 void HWChatWidget::onChatStringFromNet(const QString& str) |
59 { |
59 { |
60 if (str.size() < 2) return; |
|
61 QListWidget* w = chatText; |
60 QListWidget* w = chatText; |
|
61 w->addItem(str); |
62 w->scrollToBottom(); |
62 w->scrollToBottom(); |
63 w->setSelectionMode(QAbstractItemView::NoSelection); |
63 w->setSelectionMode(QAbstractItemView::NoSelection); |
64 } |
64 } |
65 |
65 |
66 void HWChatWidget::nickAdded(const QString& nick) |
66 void HWChatWidget::nickAdded(const QString& nick) |