added more in game timestamps

This commit is contained in:
poixen 2016-07-02 21:45:38 +02:00
parent 277d7e2173
commit 60f457827f

View file

@ -80,7 +80,7 @@ void ChatView::appendHtmlServerMessage(const QString &html, bool optionalIsBold,
{
bool atBottom = verticalScrollBar()->value() >= verticalScrollBar()->maximum();
QString htmlText = "<font color=" + ((optionalFontColor.size() > 0) ? optionalFontColor : SERVER_MESSAGE_COLOR) + ">" + html + "</font>";
QString htmlText = "<font color=" + ((optionalFontColor.size() > 0) ? optionalFontColor : SERVER_MESSAGE_COLOR) + ">" + QDateTime::currentDateTime().toString("[hh:mm:ss] ")+ html + "</font>";
if (optionalIsBold)
htmlText = "<b>" + htmlText + "</b>";