1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

add timestamp to copied text (issue #4)

This commit is contained in:
krepa098 2015-02-07 22:40:24 +01:00
parent a2cf91cb36
commit 2dc79a80bc

View File

@ -468,7 +468,7 @@ QString ChatLog::getSelectedText() const
if(lastSender != lines[i]->content[0]->getText() && !lines[i]->content[0]->getText().isEmpty())
{
//author changed
out += QString(out.isEmpty() ? "%1:\n" : "\n%1:\n").arg(lines[i]->content[0]->getText());
out += QString(out.isEmpty() ? "[%2] %1:\n" : "\n[%2] %1:\n").arg(lines[i]->content[0]->getText(), lines[i]->content[2]->getText());
lastSender = lines[i]->content[0]->getText();
}