QmlJS: Improve completion of signals.

* Change from Reference to FunctionValue: There was no reason for them
  being References as the argument types never need lookup.
* Enumerate in global completion: When you define 'signal foo(int a)'
  you now get completion for 'foo' and will get the function argument
  hint popup.

Change-Id: Ic348db477a34ba468dfdb690499a9cd8fd605cd2
Reviewed-on: http://codereview.qt-project.org/4774
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Christian Kamm
2011-09-13 14:29:47 +02:00
parent fa281be8bf
commit 5b1a24ab95
5 changed files with 71 additions and 37 deletions

View File

@@ -156,8 +156,10 @@ private:
return true;
}
virtual bool processSignal(const QString &, const Value *)
virtual bool processSignal(const QString &name, const Value *value)
{
if (_globalCompletion)
insertProperty(name, value);
return true;
}