Rename generated model property getters and state checkers
Rename Q_PROPERTY declarations for regular object properties to use the
property name as the exposed name and the bare getter as READ function,
matching the naming already used in the oneOf section:
Q_PROPERTY(Type name READ getter WRITE setter)
Drop the Value suffix from property getters:
getter() instead of getterValue()
Rename the property state checkers for regular (non-oneOf) properties
to use a Value infix:
isNameValueSet() instead of isNameSet()
isNameValueValid() instead of isNameValid()
This prevents a name clash introduced when removing the Value suffix
from getters. Boolean properties use an 'is' prefix for their getter
(e.g. a bool property 'statusSet' generates 'isStatusSet()' getter).
Without the Value infix on state checkers, this collides with the
'isStatusSet()' checker for another property 'status' in the same model
(see TestObject in mediatype.yaml).
The previous fix for this clash (QTBUG-143168) avoided it by adding a
'Value' suffix to all getters. This patch uses the Value infix on
checkers instead, allowing the getter suffix to be dropped for a
cleaner API.
The oneOf state checkers keep the existing isNameSet()/isNameValid() naming
since oneOf alternative names are generator-controlled and cannot produce
such clashes.
[ChangeLog][QtOpenApi] Generated model property getters no longer
carry a Value suffix (getName() instead of getNameValue()), and the
property state checkers use a Value infix (isNameValueSet(),
isNameValueValid()). Q_PROPERTY now exposes the property name directly.
Fixes: QTBUG-146650
Change-Id: I9d8485030bedb0902f68501de77d04a1efe4f4b6
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>