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

Method toString

kdevplatform/language/editor/modificationrevisionset.cpp:273–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273QString ModificationRevisionSet::toString() const
274{
275 QMutexLocker lock(modificationRevisionSetMutex());
276 Utils::Set set(m_index, &FileModificationSetRepositoryRepresenter::repository());
277 Utils::Set::Iterator it = set.iterator();
278 QStringList revisions;
279 while (it) {
280 const FileModificationPair* data = fileModificationPairRepository().itemFromIndex(*it);
281 revisions.append(data->file.str() + QLatin1Char(':') + data->revision.toString());
282 ++it;
283 }
284
285 QString ret = QLatin1Char('[') + revisions.join(QLatin1String(", ")) + QLatin1Char(']');
286 return ret;
287}
288
289bool ModificationRevisionSet::needsUpdate() const
290{

Callers

nothing calls this directly

Calls 6

strMethod · 0.80
joinMethod · 0.80
iteratorMethod · 0.45
itemFromIndexMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected