mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
attempt to fix some issues on comments feeds
This commit is contained in:
parent
ae8071c6d9
commit
1e1032ec94
4 changed files with 22 additions and 5 deletions
|
@ -422,7 +422,9 @@ void BoardsCommentsItem::makeUpVote()
|
|||
|
||||
void BoardsCommentsItem::setComment(const RsGxsComment& cmt)
|
||||
{
|
||||
ui->commLabel->setText(RsHtml().formatText(NULL, QString::fromUtf8(cmt.mComment.c_str()), RSHTML_FORMATTEXT_EMBED_LINKS));
|
||||
uint32_t autorized_lines = (int)floor((ui->avatarLabel->height() - ui->buttonHLayout->sizeHint().height())/QFontMetricsF(ui->subjectLabel->font()).height());
|
||||
|
||||
ui->commLabel->setText(RsHtml().formatText(NULL, RsStringUtil::CopyLines(QString::fromUtf8(cmt.mComment.c_str()), autorized_lines), RSHTML_FORMATTEXT_EMBED_LINKS));;
|
||||
|
||||
ui->nameLabel->setId(cmt.mMeta.mAuthorId);
|
||||
ui->datetimeLabel->setText(DateTime::formatLongDateTime(cmt.mMeta.mPublishTs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue