MCPcopy Create free account
hub / github.com/KDE/neochat / ThreadFetchModel

Method ThreadFetchModel

src/messagecontent/models/threadmodel.cpp:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177ThreadFetchModel::ThreadFetchModel(QObject *parent)
178 : QAbstractListModel(parent)
179{
180 const auto threadModel = dynamic_cast<ThreadModel *>(parent);
181 Q_ASSERT(threadModel != nullptr);
182 connect(threadModel, &ThreadModel::moreEventsAvailableChanged, this, [this]() {
183 beginResetModel();
184 endResetModel();
185 });
186}
187
188QVariant ThreadFetchModel::data(const QModelIndex &idx, int role) const
189{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected