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

Method TextLayoutLock

MiniZincIDE/outputwidget.cpp:918–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916}
917
918TextLayoutLock::TextLayoutLock(OutputWidget* o, bool scroll) : _o(o), _scroll(scroll) {
919 if (_o->_frame != _o->ui->textBrowser->document()->rootFrame()) {
920 auto frameVisible = _o->isFrameVisible(_o->_frame);
921 if (!frameVisible) {
922 _o->toggleFrameVisibility(_o->_frame);
923 }
924 }
925 _o->ui->textBrowser->textCursor().beginEditBlock();
926}
927
928TextLayoutLock::~TextLayoutLock()
929{

Callers

nothing calls this directly

Calls 2

isFrameVisibleMethod · 0.80
toggleFrameVisibilityMethod · 0.80

Tested by

no test coverage detected