MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / onClickTable

Method onClickTable

MiniZincIDE/outputwidget.cpp:586–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586void 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
597void OutputWidget::toggleFrameVisibility(QTextFrame* frame)
598{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected