Mercurial > hg > easyhg
diff grapher.cpp @ 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 | bb2d2eecdd60 |
children | c3e8342d2de9 |
line wrap: on
line diff
--- a/grapher.cpp Fri Nov 26 23:49:48 2010 +0000 +++ b/grapher.cpp Sun Nov 28 21:52:00 2010 +0000 @@ -19,8 +19,7 @@ #include "connectionitem.h" #include "dateitem.h" #include "debug.h" - -#include <QGraphicsScene> +#include "changesetscene.h" #include <iostream> @@ -346,6 +345,8 @@ item->setY(0); m_items[id] = item; m_scene->addItem(item); + QObject::connect(item, SIGNAL(detailShown()), + m_scene, SLOT(changesetDetailShown())); } // Add the connecting lines