Commit 6e70bd41 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Install plugin in pim<version>

parent 6ef190ab
Pipeline #186791 passed with stage
in 3 minutes and 32 seconds
......@@ -97,7 +97,7 @@ target_link_libraries(kcm_kontact
KF5::KontactInterface
)
install(TARGETS kcm_kontact DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim/kcms/kontact)
install(TARGETS kcm_kontact DESTINATION ${KDE_INSTALL_PLUGINDIR}/pim${QT_MAJOR_VERSION}/kcms/kontact)
########### install files ###############
......
......@@ -747,7 +747,7 @@ void MainWindow::slotPreferences()
});
// Add the main contact KCM which is not associated with a specific plugin
dlg->addModule(KPluginMetaData(QStringLiteral("pim/kcms/kontact/kcm_kontact")));
dlg->addModule(KPluginMetaData(QStringLiteral("pim" QT_STRINGIFY(QT_VERSION_MAJOR)) + QStringLiteral("/kcms/kontact/kcm_kontact")));
auto sortByWeight = [](const KPluginMetaData &m1, const KPluginMetaData &m2) {
return m1.rawData().value(QStringLiteral("X-KDE-Weight")).toInt() < m2.rawData().value(QStringLiteral("X-KDE-Weight")).toInt();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment