| 5175 | } |
| 5176 | |
| 5177 | void Document::unregisterView(View *view) |
| 5178 | { |
| 5179 | if (!view) { |
| 5180 | return; |
| 5181 | } |
| 5182 | |
| 5183 | const Document *viewDoc = view->viewDocument(); |
| 5184 | if (!viewDoc || viewDoc != this) { |
| 5185 | return; |
| 5186 | } |
| 5187 | |
| 5188 | view->d_func()->document = nullptr; |
| 5189 | d->m_views.remove(view); |
| 5190 | } |
| 5191 | |
| 5192 | QByteArray Document::fontData(const FontInfo &font) const |
| 5193 | { |
no test coverage detected