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

Method updatePreviewText

kdevplatform/shell/settings/editstyledialog.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void EditStyleDialog::updatePreviewText(const QString &text)
100{
101 Q_ASSERT_X(!text.isEmpty(), Q_FUNC_INFO, "Empty m_pendingPreviewText has a special meaning.");
102 if (m_style.usePreview()) {
103 showPreview(text);
104 } else {
105 m_pendingPreviewText = text;
106 }
107}
108
109void EditStyleDialog::showPreview(const QString& text)
110{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.45
usePreviewMethod · 0.45

Tested by

no test coverage detected