| 117 | } |
| 118 | |
| 119 | void EditStyleDialog::previewVisibilityChanged(bool visible) |
| 120 | { |
| 121 | Q_ASSERT(m_style.usePreview() == visible); |
| 122 | if (visible) { |
| 123 | if (!m_document) { |
| 124 | initPreview(); |
| 125 | } |
| 126 | if (!m_pendingPreviewText.isEmpty()) { |
| 127 | showPreview(m_pendingPreviewText); |
| 128 | m_pendingPreviewText = QString{}; |
| 129 | } |
| 130 | } |
| 131 | m_ui.previewArea->setVisible(visible); |
| 132 | } |
| 133 | |
| 134 | QString EditStyleDialog::content() const |
| 135 | { |
nothing calls this directly
no test coverage detected