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:
parent
a2cf91cb36
commit
2dc79a80bc
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user