diff changesetscene.cpp @ 281:9162f14c5ab7

* Change "diff to parent <id>" menu entries in changeset item right-button menu to "diff to left parent" and "diff to right parent"
author Chris Cannam
date Fri, 18 Feb 2011 13:38:31 +0000
parents 8fd71f570884
children ca6edd303c9d
line wrap: on
line diff
--- a/changesetscene.cpp	Wed Feb 09 12:02:53 2011 +0000
+++ b/changesetscene.cpp	Fri Feb 18 13:38:31 2011 +0000
@@ -108,3 +108,13 @@
     }
 }
 
+ChangesetItem *
+ChangesetScene::getItemById(QString id)
+{
+    foreach (QGraphicsItem *it, items()) {
+        ChangesetItem *csit = dynamic_cast<ChangesetItem *>(it);
+        if (csit && csit->getId() == id) return csit;
+    }
+}
+
+