mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 18:43:55 -07:00
Merge pull request #2045 from Cockatrice/timestamps
added additional timestamps in game
This commit is contained in:
commit
e038534a51
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ void ChatView::appendHtmlServerMessage(const QString &html, bool optionalIsBold,
|
||||||
{
|
{
|
||||||
bool atBottom = verticalScrollBar()->value() >= verticalScrollBar()->maximum();
|
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)
|
if (optionalIsBold)
|
||||||
htmlText = "<b>" + htmlText + "</b>";
|
htmlText = "<b>" + htmlText + "</b>";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue