Swapped the <i> tag and the square bracket in the message time

This commit is contained in:
Denis Davydov 2018-07-26 16:53:54 +03:00
parent a397b6fe2f
commit 810bfbc246

View File

@ -32,7 +32,7 @@ void ChatWindow::sendMessage(QString msgText)
jSend["msgText"] = msgText;
network->sendDatagram(jSend, peerID);
QDateTime date(QDateTime::currentDateTime());
ui->chatEdit->append("[<i>" + date.toString() + "</i>] " + tr("<b>You</b>: ") + msgText);
ui->chatEdit->append("<i>[" + date.toString() + "]</i> " + tr("<b>You</b>: ") + msgText);
}
void ChatWindow::sendMsgButtonClicked()
@ -45,7 +45,7 @@ void ChatWindow::sendMsgButtonClicked()
void ChatWindow::displayMsg(QString msgText)
{
QDateTime date(QDateTime::currentDateTime());
ui->chatEdit->append("[<i>" + date.toString() + "</i>] " + "<b>" + peerID + "</b>" + ": " + msgText);
ui->chatEdit->append("<i>[" + date.toString() + "]</i> " + "<b>" + peerID + "</b>" + ": " + msgText);
}
void ChatWindow::leftFromChat()