From d1f09a9e88aa7310020471beafec00a0b5e0e434 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 15 Jun 2020 13:21:10 +0200 Subject: [PATCH] Adapt to new API --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 -- src/configuredialog/configurecomposerpage.cpp | 14 +++++++------- src/identity/identitydialog.cpp | 8 ++++---- src/kmkernel.cpp | 4 ++-- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1dc7f8cd9..608274dfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ find_package(KF5KontactInterface ${KONTACTINTERFACE_LIB_VERSION} CONFIG REQUIRED find_package(KF5Mime ${KMIME_LIB_VERSION} CONFIG REQUIRED) find_package(KF5Gravatar ${LIBGRAVATAR_VERSION_LIB} CONFIG REQUIRED) -find_package(KF5LibkdepimAkonadi ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED) +find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED) find_package(KF5Libkleo ${LIBKLEO_LIB_VERSION_LIB} CONFIG REQUIRED) find_package(KF5LibKSieve ${LIBKSIEVE_LIB_VERSION_LIB} CONFIG REQUIRED) find_package(KF5MailCommon ${MAILCOMMON_LIB_VERSION_LIB} CONFIG REQUIRED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d08bb4795..20ca330b9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -343,7 +343,6 @@ target_link_libraries(kmailprivate KF5::KCMUtils KF5::Libkleo KF5::KSieveUi - KF5::LibkdepimAkonadi KF5::KIOCore KF5::Contacts KF5::PimTextEdit @@ -384,7 +383,6 @@ add_library(kmailpart MODULE ${kmailpart_PART_SRCS}) target_link_libraries(kmailpart kmailprivate KF5::PimCommon - KF5::LibkdepimAkonadi KF5::KCMUtils KF5::Parts KF5::IconThemes diff --git a/src/configuredialog/configurecomposerpage.cpp b/src/configuredialog/configurecomposerpage.cpp index f5f99442d..3c36aec40 100644 --- a/src/configuredialog/configurecomposerpage.cpp +++ b/src/configuredialog/configurecomposerpage.cpp @@ -33,10 +33,10 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils; #include #include "globalsettings_templateparser.h" -#include +#include #include -#include -using KPIM::RecentAddresses; +#include +using PimCommon::RecentAddresses; #include #include @@ -57,7 +57,7 @@ using KPIM::RecentAddresses; #include #include -#include +#include #ifdef KDEPIM_ENTERPRISE_BUILD #include #endif @@ -578,8 +578,8 @@ void ComposerPage::GeneralTab::save() void ComposerPage::GeneralTab::slotConfigureAddressCompletion() { KLDAP::LdapClientSearch search; - QPointer dlg(new KPIM::CompletionConfigureDialog(this)); - dlg->setRecentAddresses(KPIM::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->addresses()); + QPointer dlg(new PimCommon::CompletionConfigureDialog(this)); + dlg->setRecentAddresses(PimCommon::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->addresses()); dlg->setLdapClientSearch(&search); KSharedConfig::Ptr config = KSharedConfig::openConfig(QStringLiteral("kpimbalooblacklist")); KConfigGroup group(config, "AddressLineEdit"); @@ -589,7 +589,7 @@ void ComposerPage::GeneralTab::slotConfigureAddressCompletion() dlg->load(); if (dlg->exec()) { if (dlg->recentAddressWasChanged()) { - KPIM::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->clear(); + PimCommon::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->clear(); dlg->storeAddresses(MessageComposer::MessageComposerSettings::self()->config()); } } diff --git a/src/identity/identitydialog.cpp b/src/identity/identitydialog.cpp index 0ddcd6a65..550af6d27 100644 --- a/src/identity/identitydialog.cpp +++ b/src/identity/identitydialog.cpp @@ -66,7 +66,7 @@ #include #include -#include +#include #include // libkleopatra: #include @@ -506,7 +506,7 @@ IdentityDialog::IdentityDialog(QWidget *parent) // "Reply-To Address" line edit and label: ++row; - mReplyToEdit = new KPIM::AddresseeLineEdit(tab, true); + mReplyToEdit = new PimCommon::AddresseeLineEdit(tab, true); mReplyToEdit->setClearButtonEnabled(true); mReplyToEdit->setObjectName(QStringLiteral("mReplyToEdit")); glay->addWidget(mReplyToEdit, row, 1); @@ -528,7 +528,7 @@ IdentityDialog::IdentityDialog(QWidget *parent) // "CC addresses" line edit and label: ++row; - mCcEdit = new KPIM::AddresseeLineEdit(tab, true); + mCcEdit = new PimCommon::AddresseeLineEdit(tab, true); mCcEdit->setClearButtonEnabled(true); mCcEdit->setObjectName(QStringLiteral("mCcEdit")); glay->addWidget(mCcEdit, row, 1); @@ -548,7 +548,7 @@ IdentityDialog::IdentityDialog(QWidget *parent) // "BCC addresses" line edit and label: ++row; - mBccEdit = new KPIM::AddresseeLineEdit(tab, true); + mBccEdit = new PimCommon::AddresseeLineEdit(tab, true); mBccEdit->setClearButtonEnabled(true); mBccEdit->setObjectName(QStringLiteral("mBccEdit")); glay->addWidget(mBccEdit, row, 1); diff --git a/src/kmkernel.cpp b/src/kmkernel.cpp index 41d32e404..0fbba2b43 100644 --- a/src/kmkernel.cpp +++ b/src/kmkernel.cpp @@ -18,8 +18,8 @@ using PimCommon::BroadcastStatus; #include "kmmainwidget.h" #include "search/checkindexingmanager.h" -#include -using KPIM::RecentAddresses; +#include +using PimCommon::RecentAddresses; #include "configuredialog/configuredialog.h" #include "kmcommands.h" #include "unityservicemanager.h"