| 125 | } |
| 126 | |
| 127 | void TemplatePreviewToolView::sourceTextChanged(const QString& text) |
| 128 | { |
| 129 | QString errorString = ui->preview->setText(text, ui->projectRadioButton->isChecked(), m_policy); |
| 130 | if (!errorString.isEmpty()) { |
| 131 | ui->messageWidget->setMessageType(KMessageWidget::Error); |
| 132 | ui->messageWidget->setText(errorString); |
| 133 | ui->messageWidget->animatedShow(); |
| 134 | } else { |
| 135 | ui->messageWidget->animatedHide(); |
| 136 | } |
| 137 | |
| 138 | if (m_original) { |
| 139 | ui->preview->document()->setMode(m_original->mode()); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void TemplatePreviewToolView::selectedRendererChanged() |
| 144 | { |
nothing calls this directly
no test coverage detected