Show the function arguments hint.

This commit is contained in:
Roberto Raggi
2010-01-22 10:57:48 +01:00
parent ba3e68fcbb
commit f837d49ca4
2 changed files with 295 additions and 23 deletions

View File

@@ -33,6 +33,7 @@
#include <qmljs/qmljstypesystem.h>
#include <texteditor/icompletioncollector.h>
#include <QtCore/QDateTime>
#include <QtCore/QPointer>
namespace TextEditor {
class ITextEditable;
@@ -44,6 +45,8 @@ class QmlModelManagerInterface;
namespace Internal {
class FunctionArgumentWidget;
class QmlCodeCompletion: public TextEditor::ICompletionCollector
{
Q_OBJECT
@@ -66,6 +69,8 @@ public:
virtual void cleanup();
private:
void updateSnippets();
QmlModelManagerInterface *m_modelManager;
TextEditor::ITextEditable *m_editor;
int m_startPosition;
@@ -75,7 +80,7 @@ private:
QList<TextEditor::CompletionItem> m_snippets;
QDateTime m_snippetFileLastModified;
void updateSnippets();
QPointer<FunctionArgumentWidget> m_functionArgumentWidget;
};