Add campaign infos to our website links

This commit is contained in:
Julius Künzel 2024-11-15 14:28:00 +01:00
parent f29f941d40
commit 0905fa5177
No known key found for this signature in database
6 changed files with 20 additions and 15 deletions

View file

@ -348,12 +348,12 @@
<release version="24.02.0" date="2024-02-28"/>
<release version="23.08.5" date="2024-02-15"/>
</releases>
<url type="homepage">https://kdenlive.org/</url>
<url type="homepage">https://kdenlive.org/?mtm_campaign=appstream_data&amp;mtm_kwd=homepage</url>
<url type="bugtracker">https://bugs.kde.org/enter_bug.cgi?product=kdenlive</url>
<url type="help">https://docs.kdenlive.org</url>
<url type="help">https://docs.kdenlive.org/?mtm_campaign=appstream_data&amp;mtm_kwd=help</url>
<url type="donation">https://www.kde.org/community/donations/?app=kdenlive&amp;source=appdata</url>
<url type="contact">https://kdenlive.org/contact/</url>
<url type="contribute">https://kdenlive.org/developers-welcome/</url>
<url type="contact">https://kdenlive.org/contact/?mtm_campaign=appstream_data&amp;mtm_kwd=contact</url>
<url type="contribute">https://kdenlive.org/developers-welcome/?mtm_campaign=appstream_data&amp;mtm_kwd=contribute</url>
<url type="translate">https://l10n.kde.org/</url>
<url type="vcs-browser">https://invent.kde.org/multimedia/kdenlive</url>
<screenshots>

View file

@ -9,7 +9,7 @@
<authorgroup>
<author>
<personname>
<firstname>This documentation is now deprecated, please check the new <ulink url="https://docs.kdenlive.org/">Kdenlive Manual</ulink> instead.</firstname>
<firstname>This documentation is now deprecated, please check the new <ulink url="https://docs.kdenlive.org/?mtm_campaign=kdenlive_docbook">Kdenlive Manual</ulink> instead.</firstname>
<surname>This documentation was converted from the KDE UserBase <ulink url=" http://userbase.kde.org/Kdenlive/Manual/QuickStart">Kdenlive/Manual/QuickStart</ulink> page.</surname>
</personname>
</author>

View file

@ -430,5 +430,5 @@ const QString AssetListWidget::buildLink(const QString id, AssetListType::AssetT
} else {
prefix = QStringLiteral("other");
}
return QStringLiteral("https://docs.kdenlive.org/%1/%2").arg(prefix, id);
return QStringLiteral("https://docs.kdenlive.org/%1/%2?mtm_campaign=inapp_asset_link&mtm_kwd=%1").arg(prefix, id, id);
}

View file

@ -494,9 +494,10 @@ void KdenliveSettingsDialog::initJogShuttlePage()
#endif /* USE_JOGSHUTTLE */
m_pageJog = addPage(p6, i18n("JogShuttle"), QStringLiteral("dialog-input-devices"));
#if defined(Q_OS_WIN)
m_configShuttle.shuttledisabled->setText(
i18n("For device configuration see <a href=\"https://docs.kdenlive.org/user_interface/menu/settings_menu/configure_kdenlive.html#windows\">our "
"documentation</a>."));
m_configShuttle.shuttledisabled->setText(i18n("For device configuration see <a "
"href=\"https://docs.kdenlive.org/user_interface/menu/settings_menu/"
"configure_kdenlive.html#windows?mtm_campaign=kdenlive_inapp&mtm_kwd=jogshuttle_settings\">our "
"documentation</a>."));
connect(m_configShuttle.shuttledisabled, &QLabel::linkActivated, this, &KdenliveSettingsDialog::openBrowserUrl);
#endif
}

View file

@ -680,12 +680,14 @@ bool Wizard::isOk() const
void Wizard::slotOpenManual()
{
auto *job = new KIO::OpenUrlJob(QUrl(QStringLiteral("https://docs.kdenlive.org/troubleshooting/installation_troubleshooting.html")));
auto *job = new KIO::OpenUrlJob(
QUrl(QStringLiteral("https://docs.kdenlive.org/troubleshooting/installation_troubleshooting.html?mtm_campaign=kdenlive_inapp&mtm_kwd=welcome_wizard")));
job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
// methods like setRunExecutables, setSuggestedFilename, setEnableExternalBrowser, setFollowRedirections
// exist in both classes
job->start();
//KIO::OpenUrlJob(QUrl(QStringLiteral("https://docs.kdenlive.org/troubleshooting/installation_troubleshooting.html")), QStringLiteral("text/html"));
// KIO::OpenUrlJob(QUrl(QStringLiteral("https://docs.kdenlive.org/troubleshooting/installation_troubleshooting.html?mtm_campaign=kdenlive_inapp&mtm_kwd=welcome_wizard")),
// QStringLiteral("text/html"));
}
bool Wizard::checkHwEncoder(const QString &name, const QStringList &args, const QTemporaryFile &file)

View file

@ -4967,8 +4967,10 @@ void MainWindow::checkMaxCacheSize()
if (days > 180) {
// Propose update
QAction *updateAction = new QAction(i18n("Go to download page"), this);
connect(updateAction, &QAction::triggered, this,
[]() { QDesktopServices::openUrl(QUrl(QStringLiteral("https://kdenlive.org/download"))); });
connect(updateAction, &QAction::triggered, this, []() {
QDesktopServices::openUrl(
QUrl(QStringLiteral("https://kdenlive.org/download?mtm_campaign=kdenlive_inapp&mtm_kwd=update_reminder")));
});
QAction *abortAction = new QAction(i18n("Never check again"), this);
connect(abortAction, &QAction::triggered, this, []() { KdenliveSettings::setCheckForUpdate(false); });
if (days > 360) {
@ -5238,10 +5240,10 @@ void MainWindow::appHelpActivated()
QString openPath = QStandardPaths::findExecutable(QStringLiteral("xdg-open"));
qDebug() << "------------\nFOUND OPEN PATH: " << openPath;
process.setProgram(openPath.isEmpty() ? QStringLiteral("xdg-open") : openPath);
process.setArguments({QStringLiteral("https://docs.kdenlive.org")});
process.setArguments({QStringLiteral("https://docs.kdenlive.org?mtm_campaign=kdenlive_inapp&mtm_kwd=help_action")});
process.startDetached();
} else {
QDesktopServices::openUrl(QUrl(QStringLiteral("https://docs.kdenlive.org")));
QDesktopServices::openUrl(QUrl(QStringLiteral("https://docs.kdenlive.org?mtm_campaign=kdenlive_inapp&mtm_kwd=help_action")));
}
}