| 1309 | } |
| 1310 | |
| 1311 | bool RichText::initWithXML(std::string_view origxml, const ValueMap& defaults, const OpenUrlHandler& handleOpenUrl) |
| 1312 | { |
| 1313 | if (Widget::init()) |
| 1314 | { |
| 1315 | setDefaults(defaults); |
| 1316 | setOpenUrlHandler(handleOpenUrl); |
| 1317 | |
| 1318 | return this->setString(origxml); |
| 1319 | } |
| 1320 | return false; |
| 1321 | } |
| 1322 | |
| 1323 | bool RichText::setString(std::string_view text) |
| 1324 | { |
no test coverage detected