MCPcopy Create free account
hub / github.com/KDE/kdevelop / sourceTextChanged

Method sourceTextChanged

plugins/filetemplates/templatepreviewtoolview.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void 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
143void TemplatePreviewToolView::selectedRendererChanged()
144{

Callers

nothing calls this directly

Calls 5

setMessageTypeMethod · 0.80
setTextMethod · 0.45
isEmptyMethod · 0.45
setModeMethod · 0.45
documentMethod · 0.45

Tested by

no test coverage detected