void ChatView::renderMucSubject(const MessageView &mv) { QString timestr = formatTimeStamp(mv.dateTime()); QString ut = mv.formattedUserText(); QString color = ColorOpt::instance()->color(infomrationalColorOpt).name(); QString userTextColor = ColorOpt::instance()->color("options.ui.look.colors.messages.usertext").name(); appendText(QString(useMessageIcons_?"<img src=\"icon:log_icon_info\" />":"") + QString("<font color=\"%1\">[%2] *** ").arg(color, timestr) + mv.formattedText() + (ut.isEmpty()?"":":<br>") + "</font>" + (ut.isEmpty()?"":QString(" <span style=\"color:%1;font-weight:bold\">%2</span>").arg(userTextColor, ut))); }
void ChatView::renderSubject(const MessageView &mv) { appendText(QString(useMessageIcons_?"<img src=\"icon:log_icon_info\" />":"") + "<b>" + tr("Subject:") + "</b> " + QString("%1").arg(mv.formattedUserText())); }