Fix setters for Object-derived models


There were several problems:
1. The setters were never setting the m_{{name}}IsValid flag.
2. The m_{{name}}IsSet flag was always set to true, while it's
   technically not necessarily the case if the member variable
   is itself a model or an enum.

This patch uses the "true && condition" pattern to make sure that
we set the proper value for the the flags for the models/enums
case. Normal types just set both flags to true.

Change-Id: I730064782fc99204e815fef492ac12f758585dd4
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commit6366934f45102e460ef9aab7e567fa2f418ac836
parent6f32d6120b82768a9ab88966c0ed86938acaf106
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 11 Nov 2025 16:28:45 +0100