diff --git a/applets/kicker/plugin/computermodel.cpp b/applets/kicker/plugin/computermodel.cpp index f4bf75cc6..dc21976c4 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 KConcatenateRowsProxyModel(this)) + , m_concatProxy(new QConcatenateTablesProxyModel(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 c25297e14..0c52f0a94 100644 --- a/applets/kicker/plugin/computermodel.h +++ b/applets/kicker/plugin/computermodel.h @@ -14,7 +14,7 @@ class SimpleFavoritesModel; -class KConcatenateRowsProxyModel; +class QConcatenateTablesProxyModel; class KFilePlacesModel; namespace Solid @@ -95,7 +95,7 @@ private Q_SLOTS: void onSetupDone(Solid::ErrorType error, QVariant errorData, const QString &udi); private: - KConcatenateRowsProxyModel *m_concatProxy; + QConcatenateTablesProxyModel *m_concatProxy; RunCommandModel *m_runCommandModel; SimpleFavoritesModel *m_systemAppsModel; FilteredPlacesModel *m_filteredPlacesModel; diff --git a/libnotificationmanager/notifications.cpp b/libnotificationmanager/notifications.cpp index 563a45e77..0e01502d7 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; - KConcatenateRowsProxyModel *notificationsAndJobsModel = nullptr; + QConcatenateTablesProxyModel *notificationsAndJobsModel = nullptr; NotificationFilterProxyModel *filterModel = nullptr; NotificationSortProxyModel *sortModel = nullptr; @@ -125,7 +125,7 @@ void Notifications::Private::initProxyModels() * NotificationsModel JobsModel * \\ / * \\ / - * KConcatenateRowsProxyModel + * QConcatenateTablesProxyModel * ||| * ||| * NotificationFilterProxyModel @@ -158,7 +158,7 @@ void Notifications::Private::initProxyModels() */ if (!notificationsAndJobsModel) { - notificationsAndJobsModel = new KConcatenateRowsProxyModel(q); + notificationsAndJobsModel = new QConcatenateTablesProxyModel(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 KConcatenateRowsProxyModel + } else if (auto *concatenateModel = qobject_cast(model)) { + // There's no "sourceModels()" on QConcatenateTablesProxyModel if (idxModel == notificationsModel.data() || idxModel == jobsModel.data()) { resolvedIdx = concatenateModel->mapFromSource(resolvedIdx); found = true; diff --git a/libnotificationmanager/utils.cpp b/libnotificationmanager/utils.cpp index d39b65313..c28effba9 100644 --- a/libnotificationmanager/utils.cpp +++ b/libnotificationmanager/utils.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -19,8 +20,6 @@ #include #include -#include - #include using namespace NotificationManager; @@ -109,8 +108,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); - // KConcatenateRowsProxyModel isn't a "real" proxy model, so we need to special case for it :( - } else if (auto *concatenateModel = qobject_cast(resolvedIdx.model())) { + // QConcatenateTablesProxyModel 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 6f5e6e6ee..4a68cf344 100644 --- a/libtaskmanager/concatenatetasksproxymodel.cpp +++ b/libtaskmanager/concatenatetasksproxymodel.cpp @@ -9,7 +9,7 @@ namespace TaskManager { ConcatenateTasksProxyModel::ConcatenateTasksProxyModel(QObject *parent) - : KConcatenateRowsProxyModel(parent) + : QConcatenateTablesProxyModel(parent) { } diff --git a/libtaskmanager/concatenatetasksproxymodel.h b/libtaskmanager/concatenatetasksproxymodel.h index 7b74defa4..3f395df78 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 KConcatenateRowsProxyModel implementing + * This proxy model is a subclass of QConcatenateTablesProxyModel implementing * AbstractTasksModelIface, forwarding calls to the correct source model. * * @author Eike Hein **/ -class TASKMANAGER_EXPORT ConcatenateTasksProxyModel : public KConcatenateRowsProxyModel, public AbstractTasksProxyModelIface +class TASKMANAGER_EXPORT ConcatenateTasksProxyModel : public QConcatenateTablesProxyModel, public AbstractTasksProxyModelIface { Q_OBJECT