MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / fetchMore

Method fetchMore

MediaLibrary/capturelistmodel.cpp:93–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void CaptureListModel::fetchMore(const QModelIndex &)
94{
95 QList<AnimeImage> moreCaptures;
96 hasMoreCaptures=false;
97 emit fetching(true);
98 AnimeWorker::instance()->fetchCaptures(animeName, moreCaptures, currentOffset, limitCount);
99 if (moreCaptures.count() > 0)
100 {
101 hasMoreCaptures=(moreCaptures.count()==limitCount);
102 beginInsertRows(QModelIndex(),captureList.count(),captureList.count()+moreCaptures.count()-1);
103 captureList.append(moreCaptures);
104 endInsertRows();
105 currentOffset+=moreCaptures.count();
106 }
107 emit fetching(false);
108}
109
110Qt::ItemFlags CaptureListModel::flags(const QModelIndex &index) const
111{

Callers

nothing calls this directly

Calls 3

fetchCapturesMethod · 0.80
countMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected