Guitar
BranchLabel.h
Go to the documentation of this file.
1 #ifndef BRANCHLABEL_H
2 #define BRANCHLABEL_H
3 
4 #include <QColor>
5 #include "ApplicationGlobal.h"
6 
7 
11 class BranchLabel {
12 public:
13  enum Type {
17  Tag,
18  };
20  QString text;
21  QString info;
23  : kind(kind)
24  {
25  }
26 
27  static QColor color(Type type)
28  {
29 
30  switch (type) {
35  }
36  return QColor(224, 224, 224); // gray
37  }
38 };
39 
40 #endif // BRANCHLABEL_H
ApplicationSettings::tag
QColor tag
Definition: main.h:38
BranchLabel::info
QString info
Definition: BranchLabel.h:21
ApplicationSettings::remote
QColor remote
Definition: main.h:37
ApplicationSettings::head
QColor head
Definition: main.h:35
BranchLabel::Type
Type
Definition: BranchLabel.h:13
BranchLabel
ログテーブルウィジェットのブランチ名ラベル
Definition: BranchLabel.h:11
BranchLabel::color
static QColor color(Type type)
Definition: BranchLabel.h:27
BranchLabel::LocalBranch
@ LocalBranch
Definition: BranchLabel.h:15
BranchLabel::BranchLabel
BranchLabel(Type kind=LocalBranch)
Definition: BranchLabel.h:22
BranchLabel::Tag
@ Tag
Definition: BranchLabel.h:17
BranchLabel::kind
Type kind
Definition: BranchLabel.h:19
BranchLabel.h
ApplicationSettings::branch_label_color
struct ApplicationSettings::@7 branch_label_color
global
ApplicationGlobal * global
Definition: main.cpp:33
ApplicationGlobal::appsettings
ApplicationSettings appsettings
Definition: ApplicationGlobal.h:51
ApplicationSettings::local
QColor local
Definition: main.h:36
BranchLabel::RemoteBranch
@ RemoteBranch
Definition: BranchLabel.h:16
BranchLabel::Head
@ Head
Definition: BranchLabel.h:14
BranchLabel::text
QString text
Definition: BranchLabel.h:20
ApplicationGlobal.h