for(int i = 0; i < lines.count(); i++) {
qreal h = lines[i]->layout(tsWidth, senderWidth, textWidth);
ycoords[i+1] = h + ycoords[i];
for(int i = 0; i < lines.count(); i++) {
qreal h = lines[i]->layout(tsWidth, senderWidth, textWidth);
ycoords[i+1] = h + ycoords[i];