Merge pull request #2045 from Cockatrice/timestamps

added additional timestamps in game
This commit is contained in:
Gavin Bisesi 2016-07-02 19:49:34 -04:00 committed by GitHub
commit e038534a51

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>";