comparison src/filestatuswidget.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 abfef4acceca
children 38c84c66ad7a
comparison
equal deleted inserted replaced
607:d35ed7488ccd 608:6f90bb52eee6
439 m_searchText = text; 439 m_searchText = text;
440 updateWidgets(); 440 updateWidgets();
441 } 441 }
442 442
443 void 443 void
444 FileStatusWidget::clearWidgets()
445 {
446 foreach (FileStates::State s, m_stateListMap.keys()) {
447 QListWidget *w = m_stateListMap[s];
448 w->clear();
449 w->parentWidget()->hide();
450 }
451 }
452
453 void
444 FileStatusWidget::updateWidgets() 454 FileStatusWidget::updateWidgets()
445 { 455 {
446 QDateTime lastInteractionTime; 456 QDateTime lastInteractionTime;
447 if (m_dateReference) { 457 if (m_dateReference) {
448 lastInteractionTime = m_dateReference->lastModified(); 458 lastInteractionTime = m_dateReference->lastModified();