Clear chat

Users can now clear the chat in the main lobby. This removes unwanted
text and clears up memory when the client has been open a long time.
This commit is contained in:
Matt Lowe 2015-01-13 00:33:27 +01:00
parent 7476667b69
commit 2e342361a5
4 changed files with 15 additions and 0 deletions

View file

@ -175,6 +175,10 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use
verticalScrollBar()->setValue(verticalScrollBar()->maximum());
}
void ChatView::clearChat() {
document()->clear();
}
void ChatView::enterEvent(QEvent * /*event*/)
{
setMouseTracking(true);