Commit 89631b39 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Install plugin in pim<version>

parent 097aca1d
Pipeline #185886 passed with stage
in 11 minutes and 2 seconds
......@@ -7,7 +7,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
# add_subdirectory(autotests)
#endif()
kcoreaddons_add_plugin(emailaddressselectionldapdialogplugin INSTALL_NAMESPACE akonadi)
kcoreaddons_add_plugin(emailaddressselectionldapdialogplugin INSTALL_NAMESPACE pim${QT_MAJOR_VERSION}/akonadi)
target_sources(emailaddressselectionldapdialogplugin PRIVATE
emailaddressselectionldapdialog.cpp
emailaddressselectionldapdialog.h
......
......@@ -76,7 +76,8 @@ void EmailLineEdit::insertAddresses(const KContacts::Addressee::List &list)
void EmailLineEdit::slotSelectEmail()
{
std::unique_ptr<Akonadi::AbstractEmailAddressSelectionDialog> dlg;
const KPluginMetaData editWidgetPlugin(QStringLiteral("akonadi/emailaddressselectionldapdialogplugin"));
const KPluginMetaData editWidgetPlugin(QStringLiteral("pim" QT_STRINGIFY(QT_VERSION_MAJOR))
+ QStringLiteral("/akonadi/emailaddressselectionldapdialogplugin"));
const auto result = KPluginFactory::instantiatePlugin<Akonadi::AbstractEmailAddressSelectionDialog>(editWidgetPlugin);
if (result) {
......
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