Commit e645266b authored by Konrad Materka's avatar Konrad Materka
Browse files

[applet/systemtray] Port to QConcatenateTablesProxyModel

KConcatenateRowsProxyModel is deprecated, use
QConcatenateTablesProxyModel instead.
parent 951587ff
......@@ -466,9 +466,9 @@ int StatusNotifierModel::indexOfSource(const QString &source) const
}
SystemTrayModel::SystemTrayModel(QObject *parent)
: KConcatenateRowsProxyModel(parent)
: QConcatenateTablesProxyModel(parent)
{
m_roleNames = KConcatenateRowsProxyModel::roleNames();
m_roleNames = QConcatenateTablesProxyModel::roleNames();
}
QHash<int, QByteArray> SystemTrayModel::roleNames() const
......@@ -487,5 +487,5 @@ void SystemTrayModel::addSourceModel(QAbstractItemModel *sourceModel)
}
}
KConcatenateRowsProxyModel::addSourceModel(sourceModel);
QConcatenateTablesProxyModel::addSourceModel(sourceModel);
}
......@@ -21,10 +21,10 @@
#define SYSTEMTRAYMODEL_H
#include <QAbstractListModel>
#include <QConcatenateTablesProxyModel>
#include <QList>
#include <KCoreAddons/KPluginMetaData>
#include <KItemModels/KConcatenateRowsProxyModel>
#include <Plasma/DataEngine>
#include <Plasma/DataEngineConsumer>
......@@ -165,7 +165,7 @@ private:
/**
* @brief Cantenating model for system tray, that can expose multiple data models as one.
*/
class SystemTrayModel : public KConcatenateRowsProxyModel
class SystemTrayModel : public QConcatenateTablesProxyModel
{
Q_OBJECT
public:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment