Fix error message for group property definitions on signals in new compiler
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 30 Sep 2013 06:46:45 +0000 (08:46 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Sep 2013 16:21:53 +0000 (18:21 +0200)
commitfb89bc5635c09cab0d737ffd17de5f17d797373a
tree07ac21b6228b48941bb380cae2938d2c38e25cbd
parent5b6687b7d94eb8ad140a2c150d3c978fe4d0af17
Fix error message for group property definitions on signals in new compiler

It may happen that people forget the colon after the handler name in

    onSomeSignal { code here }

and we have to print out the correct error message. It looks like a
group property, but we can identify this binding due to its reserved
use of starting with "on".

Change-Id: I7c502c1a2a5f2a6c613879468a60bc57a7d20fe8
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp