NOISSUE Add pack author and description to technic modpack import page

This commit is contained in:
kb1000
2020-11-02 22:28:07 +01:00
committed by Petr Mrázek
parent 6aa126be30
commit f4d58e17ee
4 changed files with 43 additions and 14 deletions

View File

@ -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);
}