Commit 7a0adf95 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Compile without deprecated methods

parent 0a2937e7
Pipeline #107171 passed with stage
in 1 minute and 45 seconds
......@@ -135,7 +135,7 @@ configure_file(korganizer-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/korganizer
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f02)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055500)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" OFF)
......
......@@ -51,9 +51,7 @@ KService::List KOCore::availableCalendarDecorations()
EventViews::CalendarDecoration::Decoration *KOCore::loadCalendarDecoration(const KService::Ptr &service)
{
KPluginLoader loader(*service);
auto factory = loader.factory();
KPluginFactory *factory = KPluginFactory::loadFactory(KPluginMetaData(service->library())).plugin;
if (!factory) {
qCDebug(KORGANIZER_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