Generate Json::Value for this object
| 198 | |
| 199 | // Generate Json::Value for this object |
| 200 | Json::Value QtTextReader::JsonValue() const { |
| 201 | |
| 202 | // Create root json object |
| 203 | Json::Value root = ReaderBase::JsonValue(); // get parent properties |
| 204 | root["type"] = "QtTextReader"; |
| 205 | root["width"] = width; |
| 206 | root["height"] = height; |
| 207 | root["x_offset"] = x_offset; |
| 208 | root["y_offset"] = y_offset; |
| 209 | root["text"] = text; |
| 210 | root["font"] = font.toString().toStdString(); |
| 211 | root["text_color"] = text_color; |
| 212 | root["background_color"] = background_color; |
| 213 | root["text_background_color"] = text_background_color; |
| 214 | root["gravity"] = gravity; |
| 215 | |
| 216 | // return JsonValue |
| 217 | return root; |
| 218 | } |
| 219 | |
| 220 | // Load JSON string into this object |
| 221 | void QtTextReader::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected