Mercurial > hg > easyhg
comparison src/historywidget.cpp @ 608:6f90bb52eee6
Clear history and file states while opening a new remote repo
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2012 12:12:42 +0100 |
parents | 88ec0ae91dcc |
children | f635e227775c |
comparison
equal
deleted
inserted
replaced
607:d35ed7488ccd | 608:6f90bb52eee6 |
---|---|
201 void HistoryWidget::update() | 201 void HistoryWidget::update() |
202 { | 202 { |
203 if (m_refreshNeeded) { | 203 if (m_refreshNeeded) { |
204 layoutAll(); | 204 layoutAll(); |
205 } | 205 } |
206 } | |
207 | |
208 void HistoryWidget::clear() | |
209 { | |
210 QGraphicsScene *oldScene = m_panned->scene(); | |
211 m_panned->setScene(0); | |
212 delete oldScene; | |
206 } | 213 } |
207 | 214 |
208 void HistoryWidget::layoutAll() | 215 void HistoryWidget::layoutAll() |
209 { | 216 { |
210 m_refreshNeeded = false; | 217 m_refreshNeeded = false; |