Guitar
BranchLabel.h
Go to the documentation of this file.
1 #ifndef BRANCHLABEL_H
2 #define BRANCHLABEL_H
3 
4 #include <QColor>
5 
9 class BranchLabel {
10 public:
11  enum Kind {
15  Tag,
16  };
18  QString text;
19  QString info;
21  : kind(kind)
22  {
23  }
24 
25  static QColor color(Kind type);
26 };
27 
28 #endif // BRANCHLABEL_H
ログテーブルウィジェットのブランチ名ラベル
Definition: BranchLabel.h:9
QString text
Definition: BranchLabel.h:18
QString info
Definition: BranchLabel.h:19
Kind
Definition: BranchLabel.h:11
@ Head
Definition: BranchLabel.h:12
@ Tag
Definition: BranchLabel.h:15
@ LocalBranch
Definition: BranchLabel.h:13
@ RemoteBranch
Definition: BranchLabel.h:14
BranchLabel(Kind kind=LocalBranch)
Definition: BranchLabel.h:20
static QColor color(Kind type)
Definition: BranchLabel.cpp:4
Kind kind
Definition: BranchLabel.h:17