8 #include <boost/optional.hpp> 9 #include <pajlada/serialize.hpp> 18 boost::optional<QColor>
color{boost::none};
30 rapidjson::Document::AllocatorType &a)
36 const auto &
color = *value.color;
38 color.name().toUtf8().toStdString(), a);
47 bool *error =
nullptr)
49 if (!value.IsObject())
51 PAJLADA_REPORT_ERROR(error)
60 QColor
color(colorString);
Definition: UserData.hpp:17
Definition: Application.cpp:48
void set(rapidjson::Value &obj, const char *key, const Type &value, rapidjson::Document::AllocatorType &a)
Definition: RapidjsonHelpers.hpp:22
Definition: Command.hpp:25
bool getSafe(const rapidjson::Value &obj, const char *key, Type &out)
Definition: RapidjsonHelpers.hpp:73
boost::optional< QColor > color
Definition: UserData.hpp:18