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

Method isFrameVisible

MiniZincIDE/outputwidget.cpp:905–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905bool OutputWidget::isFrameVisible(QTextFrame* frame)
906{
907 while (frame != nullptr) {
908 auto format = frame->frameFormat();
909 if (format.hasProperty(Property::Expanded)
910 && !format.property(Property::Expanded).toBool()) {
911 return false;
912 }
913 frame = frame->parentFrame();
914 }
915 return true;
916}
917
918TextLayoutLock::TextLayoutLock(OutputWidget* o, bool scroll) : _o(o), _scroll(scroll) {
919 if (_o->_frame != _o->ui->textBrowser->document()->rootFrame()) {

Callers 1

TextLayoutLockMethod · 0.80

Calls 1

frameFormatMethod · 0.80

Tested by

no test coverage detected