comparison hgtabwidget.cpp @ 134:1208d9688a8f

* Have a go at switching to new items in history widget when something happens in repo
author Chris Cannam
date Tue, 30 Nov 2010 13:07:53 +0000
parents 4986642800f0
children e6c6b88d19b9
comparison
equal deleted inserted replaced
133:aaeab914f2a3 134:1208d9688a8f
138 } 138 }
139 139
140 void HgTabWidget::setNewLog(QString hgLogList) 140 void HgTabWidget::setNewLog(QString hgLogList)
141 { 141 {
142 m_historyWidget->parseNewLog(hgLogList); 142 m_historyWidget->parseNewLog(hgLogList);
143 if (m_historyWidget->haveNewItems()) {
144 setCurrentWidget(m_historyWidget);
145 }
143 } 146 }
144 147
145 void HgTabWidget::addIncrementalLog(QString hgLogList) 148 void HgTabWidget::addIncrementalLog(QString hgLogList)
146 { 149 {
147 m_historyWidget->parseIncrementalLog(hgLogList); 150 m_historyWidget->parseIncrementalLog(hgLogList);
151 if (m_historyWidget->haveNewItems()) {
152 setCurrentWidget(m_historyWidget);
153 }
148 } 154 }
149 155
150 void HgTabWidget::setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath) 156 void HgTabWidget::setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath)
151 { 157 {
152 m_fileStatusWidget->setLocalPath(workFolderPath); 158 m_fileStatusWidget->setLocalPath(workFolderPath);