Commit f3c82ec0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated methods

parent 33cb455a
Pipeline #110415 failed with stage
in 42 seconds
......@@ -81,7 +81,7 @@ endif()
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055500)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055A00)
########### CMake Config Files ###########
......
......@@ -435,9 +435,7 @@ CalendarDecoration::Decoration *AgendaHeader::loadCalendarDecoration(const QStri
for (it = list.constBegin(); it != list.constEnd(); ++it) {
if ((*it)->desktopEntryName() == name) {
KService::Ptr service = *it;
KPluginLoader loader(*service);
auto factory = loader.factory();
KPluginFactory *factory = KPluginFactory::loadFactory(KPluginMetaData(service->library())).plugin;
if (!factory) {
qCDebug(CALENDARVIEW_LOG) << "Factory creation failed";
return nullptr;
......
Markdown is supported
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