[multimedia/kdenlive] /: Add campaign infos to our website links
Julius Künzel
null at kde.org
Fri Nov 15 13:28:56 GMT 2024
Git commit 0905fa5177aa20b5cebf660f4ee813481a2e510a by Julius Künzel.
Committed on 15/11/2024 at 13:28.
Pushed by jlskuz into branch 'master'.
Add campaign infos to our website links
M +4 -4 data/org.kde.kdenlive.appdata.xml
M +1 -1 doc/index.docbook
M +1 -1 src/assets/assetlist/view/assetlistwidget.cpp
M +4 -3 src/dialogs/kdenlivesettingsdialog.cpp
M +4 -2 src/dialogs/wizard.cpp
M +6 -4 src/mainwindow.cpp
https://invent.kde.org/multimedia/kdenlive/-/commit/0905fa5177aa20b5cebf660f4ee813481a2e510a
diff --git a/data/org.kde.kdenlive.appdata.xml b/data/org.kde.kdenlive.appdata.xml
index 85d0d3eb7f..2ebc3d9e4e 100644
--- a/data/org.kde.kdenlive.appdata.xml
+++ b/data/org.kde.kdenlive.appdata.xml
@@ -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&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&mtm_kwd=help</url>
<url type="donation">https://www.kde.org/community/donations/?app=kdenlive&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&mtm_kwd=contact</url>
+ <url type="contribute">https://kdenlive.org/developers-welcome/?mtm_campaign=appstream_data&mtm_kwd=contribute</url>
<url type="translate">https://l10n.kde.org/</url>
<url type="vcs-browser">https://invent.kde.org/multimedia/kdenlive</url>
<screenshots>
diff --git a/doc/index.docbook b/doc/index.docbook
index b0b9247702..8c690bab4b 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -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>
diff --git a/src/assets/assetlist/view/assetlistwidget.cpp b/src/assets/assetlist/view/assetlistwidget.cpp
index 681ccf1d7f..e7d422544b 100644
--- a/src/assets/assetlist/view/assetlistwidget.cpp
+++ b/src/assets/assetlist/view/assetlistwidget.cpp
@@ -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);
}
diff --git a/src/dialogs/kdenlivesettingsdialog.cpp b/src/dialogs/kdenlivesettingsdialog.cpp
index 363d024b30..7daef50a78 100644
--- a/src/dialogs/kdenlivesettingsdialog.cpp
+++ b/src/dialogs/kdenlivesettingsdialog.cpp
@@ -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
}
diff --git a/src/dialogs/wizard.cpp b/src/dialogs/wizard.cpp
index b4e0ca023b..86eeb1669a 100644
--- a/src/dialogs/wizard.cpp
+++ b/src/dialogs/wizard.cpp
@@ -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)
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 90730bf34e..9c6a6e850d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -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")));
}
}
More information about the kde-doc-english
mailing list