Fixed to use colored links for labels

This commit is contained in:
defnax 2025-06-27 19:55:16 +02:00
parent 5abefa4664
commit 01f02f2138
6 changed files with 7 additions and 7 deletions

View file

@ -464,7 +464,7 @@ void BoardsCommentsItem::fill()
//ui->titleLabel->setText(link.toHtml());
RetroShareLink msgLink = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_POSTED, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, messageName());
ui->subjectLabel->setText(msgLink.toHtml());
ui->subjectLabel->setText(msgLink.toHtmlColored());
mInFill = true;

View file

@ -388,7 +388,7 @@ void ChannelsCommentsItem::fill(bool missing_post)
if(missing_post)
ui->subjectLabel->setText("[" + QObject::tr("Missing channel post")+"]");
else
ui->subjectLabel->setText(msgLink.toHtml());
ui->subjectLabel->setText(msgLink.toHtmlColored());
ui->readButton->hide();

View file

@ -169,7 +169,7 @@ void GxsChannelGroupItem::fill()
#endif
RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_CHANNEL, mGroup.mMeta.mGroupId, groupName());
ui->nameLabel->setText(link.toHtml());
ui->nameLabel->setText(link.toHtmlColored());
ui->descLabel->setText(QString::fromUtf8(mGroup.mDescription.c_str()));

View file

@ -490,12 +490,12 @@ void GxsChannelPostItem::fill()
title = tr("Channel Feed") + ": ";
RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, groupName());
title += link.toHtml();
title += link.toHtmlColored();
ui->titleLabel->setText(title);
msgText = tr("Post") + ": ";
RetroShareLink msgLink = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_CHANNEL, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, messageName());
msgText += msgLink.toHtml();
msgText += msgLink.toHtmlColored();
ui->subjectLabel->setText(msgText);
if (IS_GROUP_SUBSCRIBED(mGroupMeta.mSubscribeFlags) || IS_GROUP_ADMIN(mGroupMeta.mSubscribeFlags))

View file

@ -181,7 +181,7 @@ void GxsForumGroupItem::fill()
#endif
RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_FORUM, mGroup.mMeta.mGroupId, groupName());
ui->nameLabel->setText(link.toHtml());
ui->nameLabel->setText(link.toHtmlColored());
ui->descLabel->setText(QString::fromUtf8(mGroup.mDescription.c_str()));

View file

@ -148,7 +148,7 @@ void PostedGroupItem::fill()
// No link type at this moment
RetroShareLink link = RetroShareLink::createGxsGroupLink(RetroShareLink::TYPE_POSTED, mGroup.mMeta.mGroupId, groupName());
ui->nameLabel->setText(link.toHtml());
ui->nameLabel->setText(link.toHtmlColored());
// ui->nameLabel->setText(groupName());
ui->descLabel->setText(QString::fromUtf8(mGroup.mDescription.c_str()));