Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "MockMultiFeedRssModel.h"
#include <testutil.h>
#include <QFile>
#include <QObject>
#include <KisMultiFeedRSSModel.h>
MockMultiFeedRssModel::MockMultiFeedRssModel(QObject *parent)
: MultiFeedRssModel(parent)
{
}
void MockMultiFeedRssModel::addFeed(const QString &feed)
{
Q_UNUSED(feed);
Q_EMIT feedDataChanged();
}
void MockMultiFeedRssModel::loadFeedData(const RssItemList& feed)
{
m_aggregatedFeed = feed;
sortAggregatedFeed();
setArticleCount(m_aggregatedFeed.size());
beginResetModel();
endResetModel();
}