diff grapher.h @ 119:005a54380502

* Make scene remember which item has its details showing, and remove the previous one when a new one is clicked
author Chris Cannam
date Sun, 28 Nov 2010 21:52:00 +0000
parents f583e44d9d31
children 644bd31e8301
line wrap: on
line diff
--- a/grapher.h	Fri Nov 26 23:49:48 2010 +0000
+++ b/grapher.h	Sun Nov 28 21:52:00 2010 +0000
@@ -20,6 +20,7 @@
 
 #include "changeset.h"
 #include "changesetitem.h"
+#include "changesetscene.h"
 
 #include <QSet>
 #include <QMap>
@@ -30,7 +31,7 @@
 class Grapher
 {
 public:
-    Grapher(QGraphicsScene *scene) { m_scene = scene; }
+    Grapher(ChangesetScene *scene) { m_scene = scene; }
 
     void layout(Changesets csets);
 
@@ -48,7 +49,7 @@
     };
 
 private:
-    QGraphicsScene *m_scene;
+    ChangesetScene *m_scene;
 
     typedef QMap<QString, Changeset *> IdChangesetMap;
     IdChangesetMap m_changesets;