use enum for color coding

This commit is contained in:
itsmattkc
2021-10-06 13:06:34 -07:00
parent e68fa8abb2
commit 2acf261ebf
3 changed files with 48 additions and 28 deletions
+19
View File
@@ -29,6 +29,25 @@ class ColorCoding : public QObject
{
Q_OBJECT
public:
enum Code {
kRed,
kMaroon,
kOrange,
kBrown,
kYellow,
kOlive,
kLime,
kGreen,
kCyan,
kTeal,
kBlue,
kNavy,
kPink,
kPurple,
kSilver,
kGray
};
static QString GetColorName(int c);
static Color GetColor(int c);