Added timestamps to in game chat

+ added time stamps to the in game chat
This commit is contained in:
Matt Lowe 2015-01-04 18:01:46 +01:00
parent 7476667b69
commit a1a021c99c
2 changed files with 5 additions and 4 deletions

View file

@ -96,7 +96,7 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use
QTextCharFormat timeFormat;
timeFormat.setForeground(Qt::black);
cursor.setCharFormat(timeFormat);
cursor.insertText(QDateTime::currentDateTime().toString("[hh:mm] "));
cursor.insertText(QDateTime::currentDateTime().toString("[hh:mm:ss] "));
}
QTextCharFormat senderFormat;