OSDN Git Service

QmlJS: Improve completion of signals.
authorChristian Kamm <christian.d.kamm@nokia.com>
Tue, 13 Sep 2011 12:29:47 +0000 (14:29 +0200)
committerChristian Kamm <christian.d.kamm@nokia.com>
Wed, 14 Sep 2011 11:00:29 +0000 (13:00 +0200)
commit5b1a24ab95d8cd6ceb8beb46bc1acdfeac357082
tree3c27019172992ca296d810d74d6b3e5ea98c92b6
parentfa281be8bffe5ef3c19814984eb546c8cff6d4cf
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>
src/libs/qmljs/qmljsinterpreter.cpp
src/libs/qmljs/qmljsinterpreter.h
src/libs/qmljs/qmljsvalueowner.cpp
src/libs/qmljs/qmljsvalueowner.h
src/plugins/qmljseditor/qmljscompletionassist.cpp