File indexing completed on 2025-01-05 04:29:52

0001 /**
0002  * SPDX-FileCopyrightText: 2020 Tobias Fella <tobias.fella@kde.org>
0003  * SPDX-FileCopyrightText: 2021-2023 Bart De Vries <bart@mogwai.be>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 #include "models/entriesproxymodel.h"
0009 
0010 #include <QModelIndex>
0011 #include <QString>
0012 
0013 #include "feed.h"
0014 #include "models/entriesmodel.h"
0015 
0016 EntriesProxyModel::EntriesProxyModel(Feed *feed)
0017     : AbstractEpisodeProxyModel(feed)
0018 {
0019     m_entriesModel = new EntriesModel(feed);
0020     setSourceModel(m_entriesModel);
0021 }
0022 
0023 Feed *EntriesProxyModel::feed() const
0024 {
0025     return m_entriesModel->feed();
0026 }