From 581548a1de9449efc0c77e9ac85c23066bac983e Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Wed, 8 Sep 2021 00:58:25 +0200 Subject: [PATCH] Adapt to new Akonadi libraries includes using the C++ namespace as prefix GIT_SILENT --- src/kjotsedit.cpp | 5 +++++ src/kjotsmodel.cpp | 6 ++++++ src/kjotsmodel.h | 6 ++++++ src/kjotswidget.cpp | 20 +++++++++++++++++++- src/kjotswidget.h | 5 +++++ src/noteshared/notecreatorandselector.cpp | 7 +++++++ src/noteshared/notecreatorandselector.h | 6 ++++++ src/noteshared/notelockattribute.h | 6 ++++++ src/noteshared/notepinattribute.h | 6 ++++++ src/noteshared/standardnoteactionmanager.cpp | 8 ++++++++ src/noteshared/standardnoteactionmanager.h | 9 +++++++-- src/notesortproxymodel.cpp | 5 +++++ 12 files changed, 86 insertions(+), 3 deletions(-) diff --git a/src/kjotsedit.cpp b/src/kjotsedit.cpp index f1d61bd..c20bc42 100644 --- a/src/kjotsedit.cpp +++ b/src/kjotsedit.cpp @@ -33,7 +33,12 @@ #include #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else #include +#endif #include "kjotslinkdialog.h" #include "kjotsmodel.h" diff --git a/src/kjotsmodel.cpp b/src/kjotsmodel.cpp index e35c94f..99ee14f 100644 --- a/src/kjotsmodel.cpp +++ b/src/kjotsmodel.cpp @@ -13,8 +13,14 @@ #include #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#include +#else #include #include +#endif #include #include diff --git a/src/kjotsmodel.h b/src/kjotsmodel.h index 71e0ca6..ec564a7 100644 --- a/src/kjotsmodel.h +++ b/src/kjotsmodel.h @@ -10,7 +10,13 @@ #ifndef KJOTSMODEL_H #define KJOTSMODEL_H +#include +#include // for QT_VERSION_CHECK +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else #include +#endif class QTextDocument; diff --git a/src/kjotswidget.cpp b/src/kjotswidget.cpp index 3a3abd0..834fc33 100644 --- a/src/kjotswidget.cpp +++ b/src/kjotswidget.cpp @@ -35,6 +35,24 @@ // Akonadi #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#else #include #include #include @@ -50,7 +68,7 @@ #include #include #include - +#endif // Grantlee #include #include diff --git a/src/kjotswidget.h b/src/kjotswidget.h index 7fe91ed..00a41b5 100644 --- a/src/kjotswidget.h +++ b/src/kjotswidget.h @@ -18,7 +18,12 @@ #include #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else #include +#endif #include diff --git a/src/noteshared/notecreatorandselector.cpp b/src/noteshared/notecreatorandselector.cpp index 2172cbf..6d58c83 100644 --- a/src/noteshared/notecreatorandselector.cpp +++ b/src/noteshared/notecreatorandselector.cpp @@ -14,9 +14,16 @@ #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#include +#include +#else #include #include #include +#endif #include #include "noteshared_debug.h" diff --git a/src/noteshared/notecreatorandselector.h b/src/noteshared/notecreatorandselector.h index 90055cf..986d042 100644 --- a/src/noteshared/notecreatorandselector.h +++ b/src/noteshared/notecreatorandselector.h @@ -14,8 +14,14 @@ #include #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#include +#else #include #include +#endif class KJob; diff --git a/src/noteshared/notelockattribute.h b/src/noteshared/notelockattribute.h index 9bdd8a2..b0ee819 100644 --- a/src/noteshared/notelockattribute.h +++ b/src/noteshared/notelockattribute.h @@ -11,7 +11,13 @@ #ifndef KJOTS_LOCK_ATTRIBUTE_H #define KJOTS_LOCK_ATTRIBUTE_H +#include +#include // for QT_VERSION_CHECK +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else #include +#endif namespace NoteShared { diff --git a/src/noteshared/notepinattribute.h b/src/noteshared/notepinattribute.h index 3026dea..5f3903c 100644 --- a/src/noteshared/notepinattribute.h +++ b/src/noteshared/notepinattribute.h @@ -9,7 +9,13 @@ #ifndef NOTE_PIN_ATTRIBUTE_H #define NOTE_PIN_ATTRIBUTE_H +#include +#include // for QT_VERSION_CHECK +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else #include +#endif namespace NoteShared { diff --git a/src/noteshared/standardnoteactionmanager.cpp b/src/noteshared/standardnoteactionmanager.cpp index a3f4b8b..2a2f4ce 100644 --- a/src/noteshared/standardnoteactionmanager.cpp +++ b/src/noteshared/standardnoteactionmanager.cpp @@ -13,10 +13,18 @@ #include #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#include +#include +#include +#else #include #include #include #include +#endif #include #include diff --git a/src/noteshared/standardnoteactionmanager.h b/src/noteshared/standardnoteactionmanager.h index fe80dae..6605820 100644 --- a/src/noteshared/standardnoteactionmanager.h +++ b/src/noteshared/standardnoteactionmanager.h @@ -10,10 +10,15 @@ #ifndef AKONADI_STANDARDNOTESACTIONMANAGER_H #define AKONADI_STANDARDNOTESACTIONMANAGER_H -#include - #include +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else +#include +#endif + class QAction; class KActionCollection; class QItemSelectionModel; diff --git a/src/notesortproxymodel.cpp b/src/notesortproxymodel.cpp index 89def1c..dbe582f 100644 --- a/src/notesortproxymodel.cpp +++ b/src/notesortproxymodel.cpp @@ -8,7 +8,12 @@ #include "notesortproxymodel.h" +#include +#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) +#include +#else #include +#endif #include "noteshared/notepinattribute.h" -- GitLab