Core: Fix url encoding in markdown text

Otherwise spaces break the links

Change-Id: Ib9ce1c3409d07bcba8b79f8269c9af95228f5692
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-09-11 15:04:36 +02:00
parent 296c62b512
commit 9957339a67

View File

@@ -342,13 +342,14 @@ public:
!m_data->installIntoApplication);
installLocation.ensureWritableDir();
m_summaryLabel->setText(Tr::tr("%1 will be installed into %2.")
.arg(QString("[%1](%2)")
.arg(m_data->sourcePath.fileName())
.arg(m_data->sourcePath.parentDir().toUrl().toString()))
.arg(QString("[%1](%2)")
.arg(installLocation.fileName())
.arg(installLocation.toUrl().toString())));
m_summaryLabel->setText(
Tr::tr("%1 will be installed into %2.")
.arg(QString("[%1](%2)")
.arg(m_data->sourcePath.fileName())
.arg(m_data->sourcePath.parentDir().toUrl().toString(QUrl::FullyEncoded)))
.arg(QString("[%1](%2)")
.arg(installLocation.fileName())
.arg(installLocation.toUrl().toString(QUrl::FullyEncoded))));
m_loadImmediately->setVisible(m_data->pluginSpec && m_data->pluginSpec->isSoftLoadable());
}