mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-23 15:42:18 +00:00
Added display of message time (local time)
This commit is contained in:
parent
18714ddde6
commit
a397b6fe2f
@ -31,7 +31,8 @@ void ChatWindow::sendMessage(QString msgText)
|
||||
jSend["chatID"] = chatID;
|
||||
jSend["msgText"] = msgText;
|
||||
network->sendDatagram(jSend, peerID);
|
||||
ui->chatEdit->append(tr("<b>You</b>: ") + msgText);
|
||||
QDateTime date(QDateTime::currentDateTime());
|
||||
ui->chatEdit->append("[<i>" + date.toString() + "</i>] " + tr("<b>You</b>: ") + msgText);
|
||||
}
|
||||
|
||||
void ChatWindow::sendMsgButtonClicked()
|
||||
@ -43,7 +44,8 @@ void ChatWindow::sendMsgButtonClicked()
|
||||
|
||||
void ChatWindow::displayMsg(QString msgText)
|
||||
{
|
||||
ui->chatEdit->append("<b>" + peerID + "</b>" + ": " + msgText);
|
||||
QDateTime date(QDateTime::currentDateTime());
|
||||
ui->chatEdit->append("[<i>" + date.toString() + "</i>] " + "<b>" + peerID + "</b>" + ": " + msgText);
|
||||
}
|
||||
|
||||
void ChatWindow::leftFromChat()
|
||||
|
Loading…
Reference in New Issue
Block a user