diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,7 @@ set(LIBKDEPIM_LIB_VERSION "5.13.40") set(PIMCOMMON_LIB_VERSION "5.13.40") -set(AKONADI_VERSION "5.13.40") +set(AKONADI_VERSION "5.13.41") set(AKONADIMIME_LIB_VERSION "5.13.40") set(MESSAGELIB_LIB_VERSION "5.13.40") set(KMIME_LIB_VERSION "5.13.40") diff --git a/src/folder/entitycollectionorderproxymodel.h b/src/folder/entitycollectionorderproxymodel.h --- a/src/folder/entitycollectionorderproxymodel.h +++ b/src/folder/entitycollectionorderproxymodel.h @@ -20,8 +20,8 @@ #ifndef MAILCOMMON_ENTITYCOLLECTIONORDERPROXYMODEL_H #define MAILCOMMON_ENTITYCOLLECTIONORDERPROXYMODEL_H -#include #include "mailcommon_export.h" +#include namespace MailCommon { /** diff --git a/src/folder/favoritecollectionorderproxymodel.h b/src/folder/favoritecollectionorderproxymodel.h --- a/src/folder/favoritecollectionorderproxymodel.h +++ b/src/folder/favoritecollectionorderproxymodel.h @@ -20,8 +20,8 @@ #ifndef MAILCOMMON_FAVORITECOLLECTIONORDERPROXYMODEL_H #define MAILCOMMON_FAVORITECOLLECTIONORDERPROXYMODEL_H -#include #include "mailcommon_export.h" +#include namespace MailCommon { /** diff --git a/src/folder/foldertreewidgetproxymodel.h b/src/folder/foldertreewidgetproxymodel.h --- a/src/folder/foldertreewidgetproxymodel.h +++ b/src/folder/foldertreewidgetproxymodel.h @@ -20,9 +20,10 @@ #ifndef MAILCOMMON_FOLDERTREEWIDGETPROXYMODEL_H #define MAILCOMMON_FOLDERTREEWIDGETPROXYMODEL_H +#include "mailcommon_export.h" + #include #include -#include "mailcommon_export.h" namespace MailCommon { /** @@ -69,8 +70,9 @@ void readConfig(); void setWarningThreshold(qreal threshold); + protected: - bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const override; + bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override; private: class Private; diff --git a/src/folder/foldertreewidgetproxymodel.cpp b/src/folder/foldertreewidgetproxymodel.cpp --- a/src/folder/foldertreewidgetproxymodel.cpp +++ b/src/folder/foldertreewidgetproxymodel.cpp @@ -126,7 +126,7 @@ if (!MailCommon::Util::isVirtualCollection(collection)) { const Akonadi::AgentInstance instance = Akonadi::AgentManager::self()->instance(collection.resource()); if (instance.status() == Akonadi::AgentInstance::Broken) { - return KRecursiveFilterProxyModel::flags(sourceIndex) & ~(Qt::ItemIsSelectable | Qt::ItemIsEnabled); + return QSortFilterProxyModel::flags(sourceIndex) & ~(Qt::ItemIsSelectable | Qt::ItemIsEnabled); } } return Akonadi::EntityRightsFilterModel::flags(index); @@ -190,7 +190,7 @@ return d->hideOutboxFolder; } -bool FolderTreeWidgetProxyModel::acceptRow(int sourceRow, const QModelIndex &sourceParent) const +bool FolderTreeWidgetProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const { const QModelIndex modelIndex = sourceModel()->index(sourceRow, 0, sourceParent); @@ -221,7 +221,7 @@ } } - return KRecursiveFilterProxyModel::acceptRow(sourceRow, sourceParent); + return EntityRightsFilterModel::filterAcceptsRow(sourceRow, sourceParent); } QVariant FolderTreeWidgetProxyModel::data(const QModelIndex &index, int role) const