| 5776 | } |
| 5777 | |
| 5778 | void 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 | |
| 5791 | void ShaderViewer::snippet_constants() |
| 5792 | { |
nothing calls this directly
no test coverage detected