TestEditor/ModelAdapter: Fix model to pass the model test.
Check for invalid (top level) or valid indexes in the overridden functions. This prevents crashes due to accessibility traversing the model. Task-number: QTCREATORBUG-13142 Change-Id: I22d0831338436479e6ec3b215514bbb9513dffc7 Reviewed-by: Eike Ziller <email@example.com> Reviewed-by: David Schulz <firstname.lastname@example.org>
Showing with 3 additions and 3 deletions