33 #define COLOR_SPEC_KEY "spec" 34 #define RGB_RED_KEY "red" 35 #define RGB_GREEN_KEY "green" 36 #define RGB_BLUE_KEY "blue" 37 #define RGB_ALPHA_KEY "alpha" 38 #define HSV_HUE_KEY "hue" 39 #define HSV_SAT_KEY "saturation" 40 #define HSV_VALUE_KEY "value" 41 #define HSV_ALPHA_KEY "alpha" 42 #define CMYK_CYAN_KEY "cyan" 43 #define CMYK_MAGENTA_KEY "magenta" 44 #define CMYK_YELLOW_KEY "yellow" 45 #define CMYK_BLACK_KEY "black" 46 #define CMYK_ALPHA_KEY "alpha" 47 #define HSL_HUE_KEY "hue" 48 #define HSL_SAT_KEY "saturation" 49 #define HSL_LIGHT_KEY "light" 50 #define HSL_ALPHA_KEY "alpha" 55 obj->insert(
"qmjsontype",
"QColor");
105 auto color = QColor();
107 if(obj.isNull() ==
true)
108 return QMPointer<QMJsonValue>(
new QMJsonValue(color));
153 return QMPointer<QMJsonValue>(
new QMJsonValue(color));
static QMPointer< QMJsonValue > fromComplexJson(const QMPointer< QMJsonObject > &obj)
virtual void toComplexJson(const QMPointer< QMJsonObject > &obj)