Mercurial > hg > easyhg
comparison filestatuswidget.cpp @ 92:06f4fffd5287
* Rename StatParser to FileStates; start thinking about selections
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 13:23:30 +0000 |
parents | 622da79c0f4f |
children | dfb7a274b90f |
comparison
equal
deleted
inserted
replaced
91:879af4608c5e | 92:06f4fffd5287 |
---|---|
89 m_remoteURL = r; | 89 m_remoteURL = r; |
90 m_remoteURLLabel->setText(r); | 90 m_remoteURLLabel->setText(r); |
91 } | 91 } |
92 | 92 |
93 void | 93 void |
94 FileStatusWidget::setStatParser(StatParser p) | 94 FileStatusWidget::setFileStates(FileStates p) |
95 { | 95 { |
96 m_statParser = p; | 96 m_fileStates = p; |
97 updateWidgets(); | 97 updateWidgets(); |
98 } | 98 } |
99 | 99 |
100 void | 100 void |
101 FileStatusWidget::updateWidgets() | 101 FileStatusWidget::updateWidgets() |
102 { | 102 { |
103 StatParser &sp = m_statParser; | 103 FileStates &sp = m_fileStates; |
104 QMap<QStringList *, QListWidget *> listmap; | 104 QMap<QStringList *, QListWidget *> listmap; |
105 listmap[&sp.modified] = m_modifiedList; | 105 listmap[&sp.modified] = m_modifiedList; |
106 listmap[&sp.added] = m_addedList; | 106 listmap[&sp.added] = m_addedList; |
107 listmap[&sp.removed] = m_removedList; | 107 listmap[&sp.removed] = m_removedList; |
108 listmap[&sp.missing] = m_missingList; | 108 listmap[&sp.missing] = m_missingList; |