| 584 | } |
| 585 | |
| 586 | void OutputWidget::onClickTable(QTextTable* table) { |
| 587 | TextLayoutLock lock(this, false); |
| 588 | auto tableFormat = table->format(); |
| 589 | if (tableFormat.hasProperty(Property::ToggleFrame)) { |
| 590 | auto tableCursor = table->lastCursorPosition(); |
| 591 | tableCursor.movePosition(QTextCursor::NextCharacter, QTextCursor::MoveAnchor, 2); |
| 592 | auto* frame = tableCursor.currentFrame(); |
| 593 | toggleFrameVisibility(frame); |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | void OutputWidget::toggleFrameVisibility(QTextFrame* frame) |
| 598 | { |
nothing calls this directly
no outgoing calls
no test coverage detected