Support change slots for properties starting with '_'
authorChris Adams <christopher.adams@nokia.com>
Mon, 23 May 2011 05:22:37 +0000 (15:22 +1000)
committerChris Adams <christopher.adams@nokia.com>
Mon, 23 May 2011 07:09:50 +0000 (17:09 +1000)
commit9605fc786482bdd208cc3bfe92f318f7c314329c
tree1396d8e9e504722ca8ba5289707592eaf657fe0a
parentcca7611e260c8ba86da3b01a83e70447c1c362bc
Support change slots for properties starting with '_'

According to ECMA-262r3, property names may begin with a letter,
underscore ('_'), dollar sign ('$'), or unicode escape sequence.
We previously supported Change slots for properties only if the
property name began with a letter; this patch adds support for
properties which begin with one or more underscore.

Task-number: QTBUG-17950
Reviewed-by: Aaron Kennedy
Change-Id: I6f28bde18a38e32c2131e0990fe0f69bda36f90e
src/declarative/qml/qdeclarativecompiler.cpp
tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlotErrors.1.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlotErrors.2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlotErrors.3.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlotErrors.4.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlots.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp