mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Added timestamps to in game chat
+ added time stamps to the in game chat
This commit is contained in:
parent
7476667b69
commit
a1a021c99c
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue