Generate Json::Value for this object
| 181 | |
| 182 | // Generate Json::Value for this object |
| 183 | Json::Value QtHtmlReader::JsonValue() const { |
| 184 | |
| 185 | // Create root json object |
| 186 | Json::Value root = ReaderBase::JsonValue(); // get parent properties |
| 187 | root["type"] = "QtHtmlReader"; |
| 188 | root["width"] = width; |
| 189 | root["height"] = height; |
| 190 | root["x_offset"] = x_offset; |
| 191 | root["y_offset"] = y_offset; |
| 192 | root["html"] = html; |
| 193 | root["css"] = css; |
| 194 | root["background_color"] = background_color; |
| 195 | root["gravity"] = gravity; |
| 196 | |
| 197 | // return JsonValue |
| 198 | return root; |
| 199 | } |
| 200 | |
| 201 | // Load JSON string into this object |
| 202 | void QtHtmlReader::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected