MCPcopy Create free account
hub / github.com/KDE/kdevelop / fetchMore

Method fetchMore

kdevplatform/vcs/models/vcseventmodel.cpp:156–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void VcsEventLogModel::fetchMore(const QModelIndex& parent)
157{
158 Q_D(VcsEventLogModel);
159
160 d->fetching = true;
161 Q_ASSERT(!parent.isValid());
162 Q_UNUSED(parent);
163 VcsJob* job = d->m_iface->log(d->m_url, d->m_rev, qMax(rowCount(), 100));
164 connect(this, &VcsEventLogModel::destroyed, job, [this, job] {
165 job->disconnect(this); // ~VcsEventLogModel() has returned => cannot invoke jobReceivedResults()
166 job->kill();
167 });
168 connect(job, &VcsJob::finished, this, &VcsEventLogModel::jobReceivedResults);
169 ICore::self()->runController()->registerJob( job );
170}
171
172void VcsEventLogModel::jobReceivedResults(KJob* job)
173{

Callers

nothing calls this directly

Calls 5

registerJobMethod · 0.80
runControllerMethod · 0.80
isValidMethod · 0.45
logMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected