Mercurial > hg > easyhg
comparison hgexpwidget.cpp @ 94:44ed7766d55a
* Clear selections when Esc pressed; some refactoring
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 14:41:52 +0000 |
parents | 06f4fffd5287 |
children | d1be9712818a |
comparison
equal
deleted
inserted
replaced
93:dfb7a274b90f | 94:44ed7766d55a |
---|---|
55 panner->connectToPanned(panned); | 55 panner->connectToPanned(panned); |
56 historyGraphPageWidget->setLayout(layout); | 56 historyGraphPageWidget->setLayout(layout); |
57 addTab(historyGraphPageWidget, tr("History")); | 57 addTab(historyGraphPageWidget, tr("History")); |
58 } | 58 } |
59 | 59 |
60 void HgExpWidget::clearSelections() | |
61 { | |
62 fileStatusWidget->clearSelections(); | |
63 } | |
64 | |
60 bool HgExpWidget::canCommit() const | 65 bool HgExpWidget::canCommit() const |
61 { | 66 { |
62 return fileStatusWidget->haveChangesToCommit(); | 67 return fileStatusWidget->haveChangesToCommit(); |
63 } | 68 } |
64 | 69 |
65 void HgExpWidget::updateWorkFolderFileList(QString fileList) | 70 void HgExpWidget::updateWorkFolderFileList(QString fileList) |
66 { | 71 { |
67 fileStates = FileStates(fileList); | 72 fileStates.parseStates(fileList); |
68 fileStatusWidget->setFileStates(fileStates); | 73 fileStatusWidget->setFileStates(fileStates); |
69 } | 74 } |
70 | 75 |
71 void HgExpWidget::updateLocalRepoHgLogList(QString hgLogList) | 76 void HgExpWidget::updateLocalRepoHgLogList(QString hgLogList) |
72 { | 77 { |