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

Method showPreview

kdevplatform/shell/settings/editstyledialog.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void EditStyleDialog::showPreview(const QString& text)
110{
111 m_document->setReadWrite(true);
112 m_style.setContent(content());
113 m_document->setText(m_sourceFormatter.formatSourceWithStyle(m_style, text, QUrl(), m_mimeType));
114
115 m_view->setCursorPosition(KTextEditor::Cursor(0, 0));
116 m_document->setReadWrite(false);
117}
118
119void EditStyleDialog::previewVisibilityChanged(bool visible)
120{

Callers

nothing calls this directly

Calls 6

QUrlClass · 0.50
CursorClass · 0.50
setContentMethod · 0.45
setTextMethod · 0.45
formatSourceWithStyleMethod · 0.45
setCursorPositionMethod · 0.45

Tested by

no test coverage detected