Mercurial > hg > easyhg
diff filestatuswidget.h @ 90:b43355c2473a
* Add filesystem watcher; initial work on enable/disable logic for actions in new scheme
author | Chris Cannam |
---|---|
date | Tue, 23 Nov 2010 16:35:49 +0000 |
parents | c5e34ed5b791 |
children | 06f4fffd5287 |
line wrap: on
line diff
--- a/filestatuswidget.h Tue Nov 23 14:49:13 2010 +0000 +++ b/filestatuswidget.h Tue Nov 23 16:35:49 2010 +0000 @@ -41,6 +41,12 @@ StatParser statParser() const { return m_statParser; } void setStatParser(StatParser sp); + bool haveChangesToCommit() const { + return !m_statParser.added.empty() || + !m_statParser.removed.empty() || + !m_statParser.modified.empty(); + } + private: QString m_localPath; QLabel *m_localPathLabel;