From dfb7692b7452fce86876153b9c5bcca1033570c4 Mon Sep 17 00:00:00 2001 From: Rmys Date: Fri, 19 Mar 2021 10:08:40 +0300 Subject: [PATCH] zanshin rebuild --- ...0c08998b33b37af99c3312d193b063b3e8174.diff | 45 +++++++++++++++++++ office/zanshin/pspec.xml | 3 ++ 2 files changed, 48 insertions(+) create mode 100644 office/zanshin/files/4850c08998b33b37af99c3312d193b063b3e8174.diff diff --git a/office/zanshin/files/4850c08998b33b37af99c3312d193b063b3e8174.diff b/office/zanshin/files/4850c08998b33b37af99c3312d193b063b3e8174.diff new file mode 100644 index 0000000000..c8950931ff --- /dev/null +++ b/office/zanshin/files/4850c08998b33b37af99c3312d193b063b3e8174.diff @@ -0,0 +1,45 @@ +diff --git a/src/zanshin/kontact/kontact_plugin.cpp b/src/zanshin/kontact/kontact_plugin.cpp +index b03d967457d6f7a7cc60fd72cb990e8e64f352f0..4b0d2f925a300545ea3f222864b264f12ac38593 100644 +--- a/src/zanshin/kontact/kontact_plugin.cpp ++++ b/src/zanshin/kontact/kontact_plugin.cpp +@@ -33,9 +33,16 @@ Plugin::Plugin(KontactInterface::Core *core, const QVariantList&) + setComponentName(QStringLiteral("zanshin"), QStringLiteral("zanshin")); + } + ++#if KONTACTINTERFACE_VERSION >= QT_VERSION_CHECK(5, 14, 42) ++KParts::Part *Plugin::createPart() ++{ ++ return loadPart(); ++} ++#else + KParts::ReadOnlyPart *Plugin::createPart() + { + return loadPart(); + } ++#endif + + #include "kontact_plugin.moc" +diff --git a/src/zanshin/kontact/kontact_plugin.h b/src/zanshin/kontact/kontact_plugin.h +index 0d45564e861f21fc26b4e2b3a21668bd9c757002..a270ba1643bf11bd38f9f08a4096588082f962b2 100644 +--- a/src/zanshin/kontact/kontact_plugin.h ++++ b/src/zanshin/kontact/kontact_plugin.h +@@ -25,6 +25,7 @@ + #define ZANSHIN_KONTACT_PLUGIN_H + + #include ++#include + + class Plugin : public KontactInterface::Plugin + { +@@ -36,7 +37,11 @@ public: + int weight() const override { return 449; } + + protected: ++#if KONTACTINTERFACE_VERSION >= QT_VERSION_CHECK(5, 14, 42) ++ KParts::Part *createPart() override; ++#else + KParts::ReadOnlyPart *createPart() override; ++#endif + }; + + #endif diff --git a/office/zanshin/pspec.xml b/office/zanshin/pspec.xml index 49744ccaa8..0e486002ad 100644 --- a/office/zanshin/pspec.xml +++ b/office/zanshin/pspec.xml @@ -35,6 +35,9 @@ akonadi-mime-devel https://github.com/KDE/zanshin/archive/0.5.71.tar.gz + + 4850c08998b33b37af99c3312d193b063b3e8174.diff + zanshin