dialog_html QString div class dialog messages list readed unreaded id

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
dialog_html = QString("<div class='dialog ") + (messages.list[i].readed ? " " : "unreaded") + "' id='dialog" + QString::number(i) + "'>" +
"<div class='time'>" +
time.toString(Qt::SystemLocaleShortDate) +
(messages.list[i].unread > 0 ? QString("<br /><div class='message_unread'>+") + QString::number(messages.list[i].unread) + "</div>" : "") +
"</div>" +
"<div class='avatar avatar_dialog " + (messages.list[i].isChat ? "avatar_conf" : "") + "'>" +
avatars +
"</div>" +
"<div class='message' id='message" + QString::number(i) + "'>" +
"<div class='message_owner " + (messages.list[i].isChat ? "'" : "message_owner" + messages.list[i].user_id + "' id='owner" + messages.list[i].user_id + "'") + ">" +
(messages.list[i].isChat ? messages.list[i].title : "Loading..") +
"</div>" +
"<div class='message_body'>" +
(messages.list[i].out ? ("<img src='file://" + EXPATH + "/data/outcome.png' class='inout' />") : "") +
spmessage +
"</div>" +
"</div>" +
"</div>";
html += dialog_html;