QTfrontend/chatwidget.cpp
changeset 1588 0988ae7771d3
parent 1587 b8a3d449bed7
child 1589 53eb1d3953ef
equal deleted inserted replaced
1587:b8a3d449bed7 1588:0988ae7771d3
    85 void HWChatWidget::onServerMessage(const QString& str)
    85 void HWChatWidget::onServerMessage(const QString& str)
    86 {
    86 {
    87 	if (chatStrings.size() > 250)
    87 	if (chatStrings.size() > 250)
    88 		chatStrings.removeFirst();
    88 		chatStrings.removeFirst();
    89 	
    89 	
    90 	chatStrings.append(str);
    90 	chatStrings.append("<hr>" + str + "<hr>");
    91 	
    91 	
    92 	chatText->setHtml(chatStrings.join("<br>"));
    92 	chatText->setHtml(chatStrings.join("<br>"));
    93 
    93 
    94 	chatText->moveCursor(QTextCursor::End);
    94 	chatText->moveCursor(QTextCursor::End);
    95 }
    95 }