MCPcopy Create free account
hub / github.com/baldurk/renderdoc / insertSnippet

Method insertSnippet

qrenderdoc/Windows/ShaderViewer.cpp:5778–5789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5776}
5777
5778void ShaderViewer::insertSnippet(const QString &text)
5779{
5780 if(text.isEmpty())
5781 return;
5782
5783 if(m_Scintillas.isEmpty())
5784 return;
5785
5786 m_Scintillas[0]->insertText(snippetPos(), text.toUtf8().data());
5787
5788 m_Scintillas[0]->setSelection(0, 0);
5789}
5790
5791void ShaderViewer::snippet_constants()
5792{

Callers

nothing calls this directly

Calls 5

insertTextMethod · 0.80
toUtf8Method · 0.80
setSelectionMethod · 0.80
isEmptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected