Add the identifiers to the completion box.

Well, this is just a temporary hack :)
This commit is contained in:
Roberto Raggi
2010-11-19 15:15:12 +01:00
parent 365f81eb03
commit 081166fab0
3 changed files with 57 additions and 0 deletions

View File

@@ -124,6 +124,11 @@ bool GLSLTextEditor::isOutdated() const
return false;
}
QSet<QString> GLSLTextEditor::identifiers() const
{
return m_identifiers;
}
Core::IEditor *GLSLEditorEditable::duplicate(QWidget *parent)
{
GLSLTextEditor *newEditor = new GLSLTextEditor(parent);
@@ -285,4 +290,7 @@ void GLSLTextEditor::updateDocumentNow()
// ### process the ast
(void) ast;
// refresh the identifiers.
m_identifiers = engine.identifiers();
}