summaryrefslogtreecommitdiff
path: root/src/plugins/mercurial/annotationhighlighter.h
diff options
context:
space:
mode:
authorBrian McGillion <brian.mcgillion@flander.com>2009-09-15 13:03:13 +0300
committerBrian McGillion <brian.mcgillion@flander.com>2009-09-21 12:29:31 +0300
commit989e1b5acfb2c97ceb9dc38f6f1d795362924a6c (patch)
treeb1c8baf0106bac117c83c764833eca87bf806106 /src/plugins/mercurial/annotationhighlighter.h
parent0915342d15b55b611c80993d524a91920255b436 (diff)
downloadqt-creator-989e1b5acfb2c97ceb9dc38f6f1d795362924a6c.tar.gz
Mercurial plugin, merge request with suggested fixes.
Diffstat (limited to 'src/plugins/mercurial/annotationhighlighter.h')
-rw-r--r--src/plugins/mercurial/annotationhighlighter.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/plugins/mercurial/annotationhighlighter.h b/src/plugins/mercurial/annotationhighlighter.h
new file mode 100644
index 0000000000..25b89b816a
--- /dev/null
+++ b/src/plugins/mercurial/annotationhighlighter.h
@@ -0,0 +1,22 @@
+#ifndef ANNOTATIONHIGHLIGHTER_H
+#define ANNOTATIONHIGHLIGHTER_H
+
+#include <vcsbase/baseannotationhighlighter.h>
+
+namespace Mercurial {
+namespace Internal {
+
+class MercurialAnnotationHighlighter : public VCSBase::BaseAnnotationHighlighter
+{
+public:
+ explicit MercurialAnnotationHighlighter(const ChangeNumbers &changeNumbers,
+ QTextDocument *document = 0);
+
+private:
+ virtual QString changeNumber(const QString &block) const;
+ QRegExp changeset;
+};
+
+} //namespace Internal
+}// namespace Mercurial
+#endif // ANNOTATIONHIGHLIGHTER_H