Mercurial > hg > easyhg
diff 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 |
line wrap: on
line diff
--- a/src/changeset.h Tue Nov 08 16:42:09 2011 +0000 +++ b/src/changeset.h Wed Nov 09 13:04:00 2011 +0000 @@ -38,6 +38,7 @@ Q_PROPERTY(QString author READ author WRITE setAuthor NOTIFY authorChanged STORED true); Q_PROPERTY(QString branch READ branch WRITE setBranch NOTIFY branchChanged STORED true); Q_PROPERTY(QStringList tags READ tags WRITE setTags NOTIFY tagsChanged STORED true); + Q_PROPERTY(QStringList bookmarks READ bookmarks WRITE setBookmarks NOTIFY bookmarksChanged STORED true); Q_PROPERTY(QString datetime READ datetime WRITE setDatetime NOTIFY datetimeChanged STORED true); Q_PROPERTY(qulonglong timestamp READ timestamp WRITE setTimestamp NOTIFY timestampChanged STORED true); Q_PROPERTY(QString age READ age WRITE setAge NOTIFY ageChanged STORED true); @@ -53,6 +54,7 @@ QString author() const { return m_author; } QString branch() const { return m_branch; } QStringList tags() const { return m_tags; } + QStringList bookmarks() const { return m_bookmarks; } QString datetime() const { return m_datetime; } qulonglong timestamp() const { return m_timestamp; } QString age() const { return m_age; } @@ -120,6 +122,7 @@ void authorChanged(QString author); void branchChanged(QString branch); void tagsChanged(QStringList tags); + void bookmarksChanged(QStringList bookmarks); void datetimeChanged(QString datetime); void timestampChanged(qulonglong timestamp); void ageChanged(QString age); @@ -134,6 +137,8 @@ void setBranch(QString branch) { m_branch = branch; emit branchChanged(branch); } void setTags(QStringList tags) { m_tags = tags; emit tagsChanged(tags); } void addTag(QString tag) { m_tags.push_back(tag); emit tagsChanged(m_tags); } + void setBookmarks(QStringList bmarks) { m_bookmarks = bmarks; emit bookmarksChanged(bmarks); } + void addBookmark(QString b) { m_bookmarks.push_back(b); emit bookmarksChanged(m_bookmarks); } void setDatetime(QString datetime) { m_datetime = datetime; emit datetimeChanged(datetime); } void setTimestamp(qulonglong timestamp) { m_timestamp = timestamp; emit timestampChanged(timestamp); } void setAge(QString age) { m_age = age; emit ageChanged(age); } @@ -148,6 +153,7 @@ QString m_author; QString m_branch; QStringList m_tags; + QStringList m_bookmarks; QString m_datetime; qulonglong m_timestamp; QString m_age;