Engauge Digitizer  2
Functions
ColorPalette.cpp File Reference
#include "ColorPalette.h"
Include dependency graph for ColorPalette.cpp:

Go to the source code of this file.

Functions

QString colorPaletteToString (ColorPalette colorPalette)
 

Function Documentation

◆ colorPaletteToString()

QString colorPaletteToString ( ColorPalette  colorPalette)

Definition at line 9 of file ColorPalette.cpp.

10 {
11  switch (colorPalette) {
13  return "Black";
14 
15  case COLOR_PALETTE_BLUE:
16  return "Blue";
17 
18  case COLOR_PALETTE_CYAN:
19  return "Cyan";
20 
21  case COLOR_PALETTE_GOLD:
22  return "Gold";
23 
25  return "Green";
26 
28  return "Magenta";
29 
30  case COLOR_PALETTE_RED:
31  return "Red";
32 
34  return "Transparent";
35 
37  return "Yellow";
38 
39  default:
40  return "Unknown";
41  }
42 }