| 903 | } |
| 904 | |
| 905 | bool 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 | |
| 918 | TextLayoutLock::TextLayoutLock(OutputWidget* o, bool scroll) : _o(o), _scroll(scroll) { |
| 919 | if (_o->_frame != _o->ui->textBrowser->document()->rootFrame()) { |
no test coverage detected