Add some leading white space to generated code for QML signals.
authorUlf Hermann <ulf.hermann@digia.com>
Tue, 4 Mar 2014 15:34:48 +0000 (16:34 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 5 Mar 2014 16:10:36 +0000 (17:10 +0100)
commit808f17756887d2fc95d526ee4aec741cb5730fad
treed4e5e98e6ab54692d0ab67a4a7f1a19259ee2735
parent3c9a2d3903e8718e6354f8bcfffe9d04f782ca06
Add some leading white space to generated code for QML signals.

Like this the column numbers in the generated code are correct. We rely
on the column numbers in quite a few places.

The alternative solution of extending the Javascript parser to add an
initial column offset would result in much more code and complexity.

const-casting the column number and adding to it after compiling would
be an option but as the column number may be saved in other places, too,
this is not desirable.

Task-number: QTBUG-37226
Change-Id: I0d11816d96ff4e7c756064646755a3e9874f9790
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlboundsignal.cpp