Mercurial > hg > easyhg
comparison historywidget.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 | 807c79350bf1 |
children | c92f5859c707 |
comparison
equal
deleted
inserted
replaced
118:9734fb0d6fff | 119:005a54380502 |
---|---|
15 COPYING included with this distribution for more information. | 15 COPYING included with this distribution for more information. |
16 */ | 16 */ |
17 | 17 |
18 #include "historywidget.h" | 18 #include "historywidget.h" |
19 | 19 |
20 #include "changesetscene.h" | |
20 #include "panned.h" | 21 #include "panned.h" |
21 #include "panner.h" | 22 #include "panner.h" |
22 #include "grapher.h" | 23 #include "grapher.h" |
23 #include "debug.h" | 24 #include "debug.h" |
24 | 25 |
51 m_changesets.clear(); | 52 m_changesets.clear(); |
52 } | 53 } |
53 | 54 |
54 void HistoryWidget::parseLog(QString log) | 55 void HistoryWidget::parseLog(QString log) |
55 { | 56 { |
56 QGraphicsScene *scene = new QGraphicsScene(); | 57 ChangesetScene *scene = new ChangesetScene(); |
57 Changesets csets = parseChangeSets(log); | 58 Changesets csets = parseChangeSets(log); |
58 ChangesetItem *tipItem = 0; | 59 ChangesetItem *tipItem = 0; |
59 | 60 |
60 if (!csets.empty()) { | 61 if (!csets.empty()) { |
61 Grapher g(scene); | 62 Grapher g(scene); |