comparison src/grapher.cpp @ 371:f051d210521e

Ensure current item is visible in graph after update
author Chris Cannam
date Thu, 24 Mar 2011 10:47:03 +0000
parents b9c153e00e84
children 6718bbc073b4
comparison
equal deleted inserted replaced
370:b9c153e00e84 371:f051d210521e
361 } 361 }
362 362
363 ChangesetItem * 363 ChangesetItem *
364 Grapher::getItemFor(Changeset *cs) 364 Grapher::getItemFor(Changeset *cs)
365 { 365 {
366 if (!cs || !m_items.contains(cs->id())) return 0; 366 if (!cs) return 0;
367 return m_items[cs->id()]; 367 return getItemFor(cs->id());
368 }
369
370 ChangesetItem *
371 Grapher::getItemFor(QString id)
372 {
373 if (!m_items.contains(id)) return 0;
374 return m_items[id];
368 } 375 }
369 376
370 void Grapher::layout(Changesets csets, 377 void Grapher::layout(Changesets csets,
371 QStringList uncommittedParents, 378 QStringList uncommittedParents,
372 QString uncommittedBranch) 379 QString uncommittedBranch)