NOISSUE Add pack author and description to technic modpack import page
This commit is contained in:
parent
6aa126be30
commit
f4d58e17ee
4 changed files with 43 additions and 14 deletions
|
@ -135,6 +135,7 @@ void MCModInfoFrame::setModDescription(QString text)
|
|||
ui->label_ModDescription->setOpenExternalLinks(false);
|
||||
ui->label_ModDescription->setTextFormat(Qt::TextFormat::RichText);
|
||||
desc = text;
|
||||
// This allows injecting HTML here.
|
||||
labeltext.append("<html><body>" + finaltext.left(287) + "<a href=\"#mod_desc\">...</a></body></html>");
|
||||
QObject::connect(ui->label_ModDescription, &QLabel::linkActivated, this, &MCModInfoFrame::modDescEllipsisHandler);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue