feat(ManagedPackPage): add link to the Modrinth's pack page
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
d4979974b4
commit
7f5dea28bb
@ -68,8 +68,8 @@ void ManagedPackPage::openedImpl()
|
||||
{
|
||||
ui->packName->setText(m_inst->getManagedPackName());
|
||||
ui->packVersion->setText(m_inst->getManagedPackVersionName());
|
||||
ui->packOrigin->setText(tr("Website: %1 | Pack ID: %2 | Version ID: %3")
|
||||
.arg(displayName(), m_inst->getManagedPackID(), m_inst->getManagedPackVersionID()));
|
||||
ui->packOrigin->setText(tr("Website: <a href=%1>%2</a> | Pack ID: %3 | Version ID: %4")
|
||||
.arg(url(), displayName(), m_inst->getManagedPackID(), m_inst->getManagedPackVersionID()));
|
||||
|
||||
parseManagedPack();
|
||||
}
|
||||
@ -224,7 +224,7 @@ void ModrinthManagedPackPage::parseManagedPack()
|
||||
|
||||
QString ModrinthManagedPackPage::url() const
|
||||
{
|
||||
return {};
|
||||
return "https://modrinth.com/mod/" + m_inst->getManagedPackID();
|
||||
}
|
||||
|
||||
void ModrinthManagedPackPage::suggestVersion()
|
||||
|
@ -96,6 +96,12 @@
|
||||
<property name="text">
|
||||
<string notr="true">placeholder</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user