[Qt-creator] QTCREATORBUG-9464
Thomas Meyer
public at meyer-thomas.com
Tue Jul 9 12:15:52 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130709/7486ffaa/attachment.html>
More information about the Qt-creator
mailing list