cleanup: remove enum typedef in color.h
Just call the enum that way and be done with it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8962aadb23
commit
2d18da5fc9
@ -81,7 +81,7 @@ static inline QColor makeColor(double r, double g, double b, double a = 1.0)
|
||||
#define VELOCITY_COLORS_START_IDX VELO_STABLE
|
||||
#define VELOCITY_COLORS 5
|
||||
|
||||
typedef enum {
|
||||
enum color_index_t {
|
||||
/* SAC colors. Order is important, the SAC_COLORS_START_IDX define above. */
|
||||
SAC_1,
|
||||
SAC_2,
|
||||
@ -145,7 +145,7 @@ typedef enum {
|
||||
CALC_CEILING_DEEP,
|
||||
TISSUE_PERCENTAGE,
|
||||
DURATION_LINE
|
||||
} color_index_t;
|
||||
};
|
||||
|
||||
QColor getColor(const color_index_t i, bool isGrayscale = false);
|
||||
QColor getSacColor(int sac, int diveSac);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user