Mercurial > hg > easyhg
comparison changeset.h @ 106:729438d70af8
* Retrieve and store current branch and heads; some refactoring
author | Chris Cannam |
---|---|
date | Thu, 25 Nov 2010 17:54:35 +0000 |
parents | f583e44d9d31 |
children | 8ae3b44c0073 |
comparison
equal
deleted
inserted
replaced
105:1928f9b408e6 | 106:729438d70af8 |
---|---|
20 | 20 |
21 #include <QObject> | 21 #include <QObject> |
22 #include <QString> | 22 #include <QString> |
23 #include <QStringList> | 23 #include <QStringList> |
24 #include <QList> | 24 #include <QList> |
25 #include <QSharedPointer> | |
26 | |
27 #include "logparser.h" | |
25 | 28 |
26 class Changeset : public QObject | 29 class Changeset : public QObject |
27 { | 30 { |
28 Q_OBJECT | 31 Q_OBJECT |
29 | 32 |
38 Q_PROPERTY(QStringList children READ children WRITE setChildren NOTIFY childrenChanged STORED true); | 41 Q_PROPERTY(QStringList children READ children WRITE setChildren NOTIFY childrenChanged STORED true); |
39 Q_PROPERTY(QString comment READ comment WRITE setComment NOTIFY commentChanged STORED true); | 42 Q_PROPERTY(QString comment READ comment WRITE setComment NOTIFY commentChanged STORED true); |
40 | 43 |
41 public: | 44 public: |
42 Changeset() : QObject() { } | 45 Changeset() : QObject() { } |
46 explicit Changeset(const LogEntry &e); | |
43 | 47 |
44 QString id() const { return m_id; } | 48 QString id() const { return m_id; } |
45 QString author() const { return m_author; } | 49 QString author() const { return m_author; } |
46 QString branch() const { return m_branch; } | 50 QString branch() const { return m_branch; } |
47 QString tag() const { return m_tag; } | 51 QString tag() const { return m_tag; } |