Fix property names collision
- {{getter}} key returns is<Name>() for boolean type of getters,
and get<Function>() for all other types.
The problem appears, when we declare the rest of functions,
that also use "is":
bool is{{#camelcase}}{{name}}{{/camelcase}}Set() const;
bool is{{#camelcase}}{{name}}{{/camelcase}}Valid() const;
Now in cases when user sets 2 properties like below in yaml file:
properties:
SecretKey:
type: string
SecretKeySet:
type: boolean
In result we got a compilation error, because
the getter of the 'boolean SecretKeySet' is isSecretKeySet(),
which is identical with the following name of function for
the 'string SecretKey' property:
bool is{{#camelcase}}{{name}}{{/camelcase}}Set() const;
Or: isSecretKeySet()
It may seem like a rare case,
but it appeared in the yaml of the very first user.
Task-number: QTBUG-143168
Pick-to: 6.11
Change-Id: If388ca6c2986301dee147d74236b1bf91e2c7e3d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>