diff --git a/CMakeLists.txt b/CMakeLists.txt index 34fbfd37d..d6e8de7c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,6 +186,7 @@ include_directories("${CMAKE_CURRENT_BINARY_DIR}") add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00) add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055800) +add_definitions(-DKITEMMODELS_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054F00) configure_file(config-workspace.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-workspace.h) configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h ) diff --git a/applets/kicker/plugin/computermodel.cpp b/applets/kicker/plugin/computermodel.cpp index dc21976c4..f4bf75cc6 100644 --- a/applets/kicker/plugin/computermodel.cpp +++ b/applets/kicker/plugin/computermodel.cpp @@ -12,10 +12,10 @@ #include #include +#include #include #include #include -#include #include #include "krunner_interface.h" @@ -123,7 +123,7 @@ Q_INVOKABLE bool RunCommandModel::trigger(int row, const QString &actionId, cons ComputerModel::ComputerModel(QObject *parent) : ForwardingModel(parent) - , m_concatProxy(new QConcatenateTablesProxyModel(this)) + , m_concatProxy(new KConcatenateRowsProxyModel(this)) , m_runCommandModel(new RunCommandModel(this)) , m_systemAppsModel(new SimpleFavoritesModel(this)) , m_filteredPlacesModel(new FilteredPlacesModel(this)) diff --git a/applets/kicker/plugin/computermodel.h b/applets/kicker/plugin/computermodel.h index 0c52f0a94..c25297e14 100644 --- a/applets/kicker/plugin/computermodel.h +++ b/applets/kicker/plugin/computermodel.h @@ -14,7 +14,7 @@ class SimpleFavoritesModel; -class QConcatenateTablesProxyModel; +class KConcatenateRowsProxyModel; class KFilePlacesModel; namespace Solid @@ -95,7 +95,7 @@ private Q_SLOTS: void onSetupDone(Solid::ErrorType error, QVariant errorData, const QString &udi); private: - QConcatenateTablesProxyModel *m_concatProxy; + KConcatenateRowsProxyModel *m_concatProxy; RunCommandModel *m_runCommandModel; SimpleFavoritesModel *m_systemAppsModel; FilteredPlacesModel *m_filteredPlacesModel; diff --git a/libnotificationmanager/notifications.cpp b/libnotificationmanager/notifications.cpp index 0e01502d7..563a45e77 100644 --- a/libnotificationmanager/notifications.cpp +++ b/libnotificationmanager/notifications.cpp @@ -6,11 +6,11 @@ #include "notifications.h" -#include #include #include #include +#include #include #include "limitedrowcountproxymodel_p.h" @@ -67,7 +67,7 @@ public: JobsModel::Ptr jobsModel; QSharedPointer settings() const; - QConcatenateTablesProxyModel *notificationsAndJobsModel = nullptr; + KConcatenateRowsProxyModel *notificationsAndJobsModel = nullptr; NotificationFilterProxyModel *filterModel = nullptr; NotificationSortProxyModel *sortModel = nullptr; @@ -125,7 +125,7 @@ void Notifications::Private::initProxyModels() * NotificationsModel JobsModel * \\ / * \\ / - * QConcatenateTablesProxyModel + * KConcatenateRowsProxyModel * ||| * ||| * NotificationFilterProxyModel @@ -158,7 +158,7 @@ void Notifications::Private::initProxyModels() */ if (!notificationsAndJobsModel) { - notificationsAndJobsModel = new QConcatenateTablesProxyModel(q); + notificationsAndJobsModel = new KConcatenateRowsProxyModel(q); } if (!filterModel) { @@ -344,8 +344,8 @@ QModelIndex Notifications::Private::mapFromModel(const QModelIndex &idx) const found = true; break; } - } else if (auto *concatenateModel = qobject_cast(model)) { - // There's no "sourceModels()" on QConcatenateTablesProxyModel + } else if (auto *concatenateModel = qobject_cast(model)) { + // There's no "sourceModels()" on KConcatenateRowsProxyModel if (idxModel == notificationsModel.data() || idxModel == jobsModel.data()) { resolvedIdx = concatenateModel->mapFromSource(resolvedIdx); found = true; diff --git a/libnotificationmanager/utils.cpp b/libnotificationmanager/utils.cpp index c28effba9..d39b65313 100644 --- a/libnotificationmanager/utils.cpp +++ b/libnotificationmanager/utils.cpp @@ -10,7 +10,6 @@ #include #include -#include #include #include #include @@ -20,6 +19,8 @@ #include #include +#include + #include using namespace NotificationManager; @@ -108,8 +109,8 @@ QModelIndex Utils::mapToModel(const QModelIndex &idx, const QAbstractItemModel * while (resolvedIdx.isValid() && resolvedIdx.model() != sourceModel) { if (auto *proxyModel = qobject_cast(resolvedIdx.model())) { resolvedIdx = proxyModel->mapToSource(resolvedIdx); - // QConcatenateTablesProxyModel isn't a "real" proxy model, so we need to special case for it :( - } else if (auto *concatenateModel = qobject_cast(resolvedIdx.model())) { + // KConcatenateRowsProxyModel isn't a "real" proxy model, so we need to special case for it :( + } else if (auto *concatenateModel = qobject_cast(resolvedIdx.model())) { resolvedIdx = concatenateModel->mapToSource(resolvedIdx); } else { if (resolvedIdx.model() != sourceModel) { diff --git a/libtaskmanager/concatenatetasksproxymodel.cpp b/libtaskmanager/concatenatetasksproxymodel.cpp index 4a68cf344..6f5e6e6ee 100644 --- a/libtaskmanager/concatenatetasksproxymodel.cpp +++ b/libtaskmanager/concatenatetasksproxymodel.cpp @@ -9,7 +9,7 @@ namespace TaskManager { ConcatenateTasksProxyModel::ConcatenateTasksProxyModel(QObject *parent) - : QConcatenateTablesProxyModel(parent) + : KConcatenateRowsProxyModel(parent) { } diff --git a/libtaskmanager/concatenatetasksproxymodel.h b/libtaskmanager/concatenatetasksproxymodel.h index 3f395df78..7b74defa4 100644 --- a/libtaskmanager/concatenatetasksproxymodel.h +++ b/libtaskmanager/concatenatetasksproxymodel.h @@ -8,7 +8,7 @@ #include "abstracttasksproxymodeliface.h" -#include +#include #include "taskmanager_export.h" @@ -17,13 +17,13 @@ namespace TaskManager /** * @short A proxy tasks model for concatenating multiple source tasks models. * - * This proxy model is a subclass of QConcatenateTablesProxyModel implementing + * This proxy model is a subclass of KConcatenateRowsProxyModel implementing * AbstractTasksModelIface, forwarding calls to the correct source model. * * @author Eike Hein **/ -class TASKMANAGER_EXPORT ConcatenateTasksProxyModel : public QConcatenateTablesProxyModel, public AbstractTasksProxyModelIface +class TASKMANAGER_EXPORT ConcatenateTasksProxyModel : public KConcatenateRowsProxyModel, public AbstractTasksProxyModelIface { Q_OBJECT