Mercurial > hg > easyhg
comparison src/changeset.h @ 520:a17c06f773cd
idiot -- we don't need to query bookmarks separately, we can just add them to the log template
author | Chris Cannam |
---|---|
date | Wed, 09 Nov 2011 13:04:00 +0000 |
parents | c623ce6b3104 |
children | 533519ebc0cb |
comparison
equal
deleted
inserted
replaced
519:000f13faa089 | 520:a17c06f773cd |
---|---|
36 | 36 |
37 Q_PROPERTY(QString id READ id WRITE setId NOTIFY idChanged STORED true); | 37 Q_PROPERTY(QString id READ id WRITE setId NOTIFY idChanged STORED true); |
38 Q_PROPERTY(QString author READ author WRITE setAuthor NOTIFY authorChanged STORED true); | 38 Q_PROPERTY(QString author READ author WRITE setAuthor NOTIFY authorChanged STORED true); |
39 Q_PROPERTY(QString branch READ branch WRITE setBranch NOTIFY branchChanged STORED true); | 39 Q_PROPERTY(QString branch READ branch WRITE setBranch NOTIFY branchChanged STORED true); |
40 Q_PROPERTY(QStringList tags READ tags WRITE setTags NOTIFY tagsChanged STORED true); | 40 Q_PROPERTY(QStringList tags READ tags WRITE setTags NOTIFY tagsChanged STORED true); |
41 Q_PROPERTY(QStringList bookmarks READ bookmarks WRITE setBookmarks NOTIFY bookmarksChanged STORED true); | |
41 Q_PROPERTY(QString datetime READ datetime WRITE setDatetime NOTIFY datetimeChanged STORED true); | 42 Q_PROPERTY(QString datetime READ datetime WRITE setDatetime NOTIFY datetimeChanged STORED true); |
42 Q_PROPERTY(qulonglong timestamp READ timestamp WRITE setTimestamp NOTIFY timestampChanged STORED true); | 43 Q_PROPERTY(qulonglong timestamp READ timestamp WRITE setTimestamp NOTIFY timestampChanged STORED true); |
43 Q_PROPERTY(QString age READ age WRITE setAge NOTIFY ageChanged STORED true); | 44 Q_PROPERTY(QString age READ age WRITE setAge NOTIFY ageChanged STORED true); |
44 Q_PROPERTY(QStringList parents READ parents WRITE setParents NOTIFY parentsChanged STORED true); | 45 Q_PROPERTY(QStringList parents READ parents WRITE setParents NOTIFY parentsChanged STORED true); |
45 Q_PROPERTY(QStringList children READ children WRITE setChildren NOTIFY childrenChanged STORED true); | 46 Q_PROPERTY(QStringList children READ children WRITE setChildren NOTIFY childrenChanged STORED true); |
51 | 52 |
52 QString id() const { return m_id; } | 53 QString id() const { return m_id; } |
53 QString author() const { return m_author; } | 54 QString author() const { return m_author; } |
54 QString branch() const { return m_branch; } | 55 QString branch() const { return m_branch; } |
55 QStringList tags() const { return m_tags; } | 56 QStringList tags() const { return m_tags; } |
57 QStringList bookmarks() const { return m_bookmarks; } | |
56 QString datetime() const { return m_datetime; } | 58 QString datetime() const { return m_datetime; } |
57 qulonglong timestamp() const { return m_timestamp; } | 59 qulonglong timestamp() const { return m_timestamp; } |
58 QString age() const { return m_age; } | 60 QString age() const { return m_age; } |
59 QStringList parents() const { return m_parents; } | 61 QStringList parents() const { return m_parents; } |
60 QString comment() const { return m_comment; } | 62 QString comment() const { return m_comment; } |
118 signals: | 120 signals: |
119 void idChanged(QString id); | 121 void idChanged(QString id); |
120 void authorChanged(QString author); | 122 void authorChanged(QString author); |
121 void branchChanged(QString branch); | 123 void branchChanged(QString branch); |
122 void tagsChanged(QStringList tags); | 124 void tagsChanged(QStringList tags); |
125 void bookmarksChanged(QStringList bookmarks); | |
123 void datetimeChanged(QString datetime); | 126 void datetimeChanged(QString datetime); |
124 void timestampChanged(qulonglong timestamp); | 127 void timestampChanged(qulonglong timestamp); |
125 void ageChanged(QString age); | 128 void ageChanged(QString age); |
126 void parentsChanged(QStringList parents); | 129 void parentsChanged(QStringList parents); |
127 void childrenChanged(QStringList children); | 130 void childrenChanged(QStringList children); |
132 void setId(QString id) { m_id = id; emit idChanged(id); } | 135 void setId(QString id) { m_id = id; emit idChanged(id); } |
133 void setAuthor(QString author) { m_author = author; emit authorChanged(author); } | 136 void setAuthor(QString author) { m_author = author; emit authorChanged(author); } |
134 void setBranch(QString branch) { m_branch = branch; emit branchChanged(branch); } | 137 void setBranch(QString branch) { m_branch = branch; emit branchChanged(branch); } |
135 void setTags(QStringList tags) { m_tags = tags; emit tagsChanged(tags); } | 138 void setTags(QStringList tags) { m_tags = tags; emit tagsChanged(tags); } |
136 void addTag(QString tag) { m_tags.push_back(tag); emit tagsChanged(m_tags); } | 139 void addTag(QString tag) { m_tags.push_back(tag); emit tagsChanged(m_tags); } |
140 void setBookmarks(QStringList bmarks) { m_bookmarks = bmarks; emit bookmarksChanged(bmarks); } | |
141 void addBookmark(QString b) { m_bookmarks.push_back(b); emit bookmarksChanged(m_bookmarks); } | |
137 void setDatetime(QString datetime) { m_datetime = datetime; emit datetimeChanged(datetime); } | 142 void setDatetime(QString datetime) { m_datetime = datetime; emit datetimeChanged(datetime); } |
138 void setTimestamp(qulonglong timestamp) { m_timestamp = timestamp; emit timestampChanged(timestamp); } | 143 void setTimestamp(qulonglong timestamp) { m_timestamp = timestamp; emit timestampChanged(timestamp); } |
139 void setAge(QString age) { m_age = age; emit ageChanged(age); } | 144 void setAge(QString age) { m_age = age; emit ageChanged(age); } |
140 void setParents(QStringList parents) { m_parents = parents; emit parentsChanged(parents); } | 145 void setParents(QStringList parents) { m_parents = parents; emit parentsChanged(parents); } |
141 void setChildren(QStringList children) { m_children = children; emit childrenChanged(m_children); } | 146 void setChildren(QStringList children) { m_children = children; emit childrenChanged(m_children); } |
146 private: | 151 private: |
147 QString m_id; | 152 QString m_id; |
148 QString m_author; | 153 QString m_author; |
149 QString m_branch; | 154 QString m_branch; |
150 QStringList m_tags; | 155 QStringList m_tags; |
156 QStringList m_bookmarks; | |
151 QString m_datetime; | 157 QString m_datetime; |
152 qulonglong m_timestamp; | 158 qulonglong m_timestamp; |
153 QString m_age; | 159 QString m_age; |
154 QStringList m_parents; | 160 QStringList m_parents; |
155 QStringList m_children; | 161 QStringList m_children; |