| 365 | } |
| 366 | |
| 367 | void OutputWidget::addHtmlToSection(const QString& section, const QString& html) |
| 368 | { |
| 369 | TextLayoutLock lock(this); |
| 370 | auto cursor = nextInsertAt(); |
| 371 | _lastTraceLoc = ""; |
| 372 | auto start = cursor.position(); |
| 373 | addSection(section); |
| 374 | QTextBlockFormat f; |
| 375 | f.setProperty(Property::Section, section); |
| 376 | cursor.insertHtml(html); |
| 377 | auto end = cursor.position(); |
| 378 | cursor.setPosition(start); |
| 379 | while (cursor.position() < end) { |
| 380 | cursor.mergeBlockFormat(f); |
| 381 | cursor.block().setVisible(_sections[section]); |
| 382 | cursor.movePosition(QTextCursor::NextBlock); |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | void OutputWidget::addStatistics(const QVariantMap& statistics) |
| 387 | { |
nothing calls this directly
no outgoing calls
no test coverage detected