commitmodel.h 476 B

1234567891011121314151617181920212223242526
  1. #ifndef COMMITMODEL_H
  2. #define COMMITMODEL_H
  3. #include <universallistmodel.h>
  4. #include <gitcommit.h>
  5. //GitBranch;
  6. class CommitModel : public UniversalListModel<GitCommit>
  7. {
  8. Q_OBJECT
  9. Q_PROPERTY(QString head READ head CONSTANT)
  10. public:
  11. CommitModel(const QString& head, QObject* parent = 0);
  12. static CommitModel* fromBranch(GitBranch* branch);
  13. QString head() const
  14. {
  15. return m_head;
  16. }
  17. private:
  18. QString m_head;
  19. };
  20. #endif // COMMITMODEL_H