This commit is contained in:
robotbrainify 2013-10-12 09:59:18 -04:00
parent aef28fd3a5
commit 4c64c3c612

View File

@ -42,7 +42,6 @@ void MCModInfoFrame::updateWithMod(Mod &m)
}
else
{
desc = m.description();
setModDescription(m.description());
}
}
@ -92,6 +91,7 @@ void MCModInfoFrame::setModDescription(QString text)
{
ui->label_ModDescription->setOpenExternalLinks(false);
ui->label_ModDescription->setTextFormat(Qt::TextFormat::RichText);
desc = text;
labeltext.append("<html><body>" + finaltext.left(287) + "<a href=\"#mod_desc\">...</a></body></html>");
QObject::connect(ui->label_ModDescription, &QLabel::linkActivated, this, &MCModInfoFrame::modDescEllipsisHandler);
}