Hi,
is it possible, that there is no 'text' (snippets) completion for the plain text editor?
I have found a small class in:
C:\Qt\qt-creator-2.7.2-src\src\plugins\texteditor\snippets\
SnippetAssistCollector.cpp
which is used in C:\Qt\qt-creator-2.7.2-src\src\plugins\cpptools\
cppcompletionassist.cpp
...
voidCppCompletionAssistProcessor::addSnippets()
{
    m_completions.append(m_snippetCollector.collect());
}
...

I can't found something similar for the PlainTextEditor or better BaseTextEditor.

For better understanding, I have tested in C:\Qt\qt-creator-2.7.2-src\src\plugins\texteditor\
basetexteditor.cpp
...
voidBaseTextEditorWidget::keyPressEvent(QKeyEvent*e)
...
caseQt::Key_Tab:
caseQt::Key_Backtab:
{
...
if(d->m_snippetOverlay->isVisible()&&!d->m_snippetOverlay->isEmpty())
...

The snippet overlay is not visible and is empty (with all and without plugins).
So my next thoughts are, that the snippets are not loaded.
In the 'Text Editor' option page, the snippets are loaded. So, I think the settings works. Has the 'd->m_snippetOverlay'to do with the text snippets or is my assumption wrong?

Thanks,
Thomas Meyer




_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to