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

Method previewVisibilityChanged

kdevplatform/shell/settings/editstyledialog.cpp:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void 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
134QString EditStyleDialog::content() const
135{

Callers

nothing calls this directly

Calls 3

usePreviewMethod · 0.45
isEmptyMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected